Browse Source

no message

xingzai 2 years ago
parent
commit
061176e7d6
2 changed files with 11 additions and 0 deletions
  1. 7 0
      controllers/report.go
  2. 4 0
      utils/constants.go

+ 7 - 0
controllers/report.go

@@ -438,7 +438,14 @@ func (this *ReportController) List() {
 			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]
 	resp.List = list
 	resp.Paging = page

+ 4 - 0
utils/constants.go

@@ -118,3 +118,7 @@ const (
 	ACTIVITY_ZXDY_ImgUrl2 = "https://hzstatic.hzinsights.com/static/temp/20220830202208/20220830/UERktOWyQQEoPeckdy01TEZP09Pu.png"
 	ACTIVITY_ZXDY_ImgUrl3 = "https://hzstatic.hzinsights.com/static/temp/20220830202208/20220830/Db2eF5jffaJlLqq1KtOgrBkddoxZ.png"
 )
+
+const (
+	YI_YAO_QI_TA = "https://hzstatic.hzinsights.com/static/temp/20220922202209/20220922/2OQMBFplQE1R3bX1y3obX7JSwSuA.png"
+)