瀏覽代碼

no message

xingzai 1 年之前
父節點
當前提交
89eac26c17
共有 2 個文件被更改,包括 9 次插入1 次删除
  1. 3 1
      controllers/report.go
  2. 6 0
      controllers/tactics.go

+ 3 - 1
controllers/report.go

@@ -593,7 +593,9 @@ func (this *ReportController) List() {
 				list[k].IsHaveVideo = true
 			}
 			list[k].ImgUrlPc = mapCategoryUrl[v.CategoryId]
-
+			if v.Resource == 2 {
+				v.PublishDate = utils.TimeRemoveHms2(v.PublishDate)
+			}
 			//if mapCategoryUrl[v.CategoryId] == "" {
 			//	if detail.ChartPermissionId == utils.YI_YAO_ID {
 			//		list[k].ImgUrlPc = utils.YI_YAO_QI_TA

+ 6 - 0
controllers/tactics.go

@@ -178,6 +178,12 @@ func (this *TacticsController) List() {
 		}
 		resp.MatchTypeName = detail.MatchTypeName
 	}
+
+	for _, v := range list {
+		if v.Resource == 2 {
+			v.PublishDate = utils.TimeRemoveHms2(v.PublishDate)
+		}
+	}
 	//lenList := len(list)
 	//for i := 0; i < lenList; i++ {
 	//	item := list[i]