Browse Source

产业视频为空时的处理

xiexiaoyuan 2 năm trước cách đây
mục cha
commit
cbe8562676
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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 = "获取成功"