浏览代码

Merge branch 'cygx_8.3' into debug

ziwen 2 年之前
父节点
当前提交
71ec907540
共有 2 个文件被更改,包括 17 次插入15 次删除
  1. 15 15
      controllers/report.go
  2. 2 0
      models/report.go

+ 15 - 15
controllers/report.go

@@ -681,21 +681,21 @@ func (this *ReportController) List() {
 		//	list[i].Abstract, _ = services.GetReportContentTextSub(item.Abstract)
 		//}
 
-		//for k, v := range list {
-		//	if v.Readnum == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.PublishDate)) {
-		//		list[k].IsRed = true
-		//	}
-		//	if v.VideoUrl != "" {
-		//		list[k].IsHaveVideo = true
-		//	}
-		//	list[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
-		//
-		//	if mapCategoryUrl[v.CategoryId] == "" {
-		//		if detail.ChartPermissionId == utils.YI_YAO_ID {
-		//			list[k].ImgUrlPc = utils.YI_YAO_QI_TA
-		//		}
-		//	}
-		//}
+		for k, v := range list {
+			//if v.Readnum == 0 && user.CreatedTime.Before(utils.StrTimeToTime(v.PublishDate)) && utils.StrTimeToTime(utils.OnlineTime).Before(utils.StrTimeToTime(v.PublishDate)) {
+			//	list[k].IsRed = true
+			//}
+			if v.VideoUrl != "" {
+				list[k].IsHaveVideo = true
+			}
+			//list[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
+			//
+			//if mapCategoryUrl[v.CategoryId] == "" {
+			//	if detail.ChartPermissionId == utils.YI_YAO_ID {
+			//		list[k].ImgUrlPc = utils.YI_YAO_QI_TA
+			//	}
+			//}
+		}
 
 		//resp.CategoryImgUrlPc = mapChartPermission[detail.ChartPermissionName]
 

+ 2 - 0
models/report.go

@@ -849,6 +849,8 @@ type TimeLineReportItem struct {
 	Title       string `description:"标题"`
 	PublishTime string `description:"发布时间"`
 	Content     string `description:"内容"`
+	VideoUrl    string `description:"视频链接"`
+	IsHaveVideo bool   `description:"是否包含视频"`
 }
 
 //获取产业报告+晨会点评列表