浏览代码

Merge branch 'feature/8.4_industry_video' into debug

xiexiaoyuan 2 年之前
父节点
当前提交
d1b0d9a02d
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      controllers/report.go

+ 4 - 1
controllers/report.go

@@ -435,7 +435,10 @@ func (this *ReportController) ArticleCategoryList() {
 	resp.LayoutTime = utils.TimeRemoveHms(detail.LayoutTime)
 	resp.IndustryName = detail.IndustryName
 	resp.IndustrialManagementId = industrialManagementId
-	resp.IndustryVideo = videoSimple
+	if videoSimple.Id > 0 {
+		resp.IndustryVideo = videoSimple
+	}
+
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"