Browse Source

no message

zhangchuanxing 2 months ago
parent
commit
586468f7c6
1 changed files with 9 additions and 12 deletions
  1. 9 12
      controllers/report.go

+ 9 - 12
controllers/report.go

@@ -924,19 +924,8 @@ func (this *MobileReportController) SearchReport() {
 			ButtonStyle:     styleMap[v.ArticleTypeId],
 			List:            v.List,
 		}
-		if v.ReportId > 0 {
-			item.Resource = 3
-			item.ReportId = v.ReportId
-			item.ResourceObj = "articleficc"
-		} else {
-			if v.ArticleTypeId == 0 {
-				item.ResourceObj = "articlevmp"
-			} else {
-				item.ResourceObj = "articleyx"
-			}
-		}
+
 		if v.IsSpecial == 1 {
-			item.ResourceObj = "articlespecial"
 			//去除图片标签
 			item.Annotation = utils.ArticleRemoveImgUrl(item.Annotation)
 
@@ -961,6 +950,14 @@ func (this *MobileReportController) SearchReport() {
 			if v.MyCollectNum > 0 {
 				item.IsCollect = true
 			}
+			item.Resource = 2
+		} else {
+			if v.ReportId > 0 {
+				item.Resource = 3
+				item.ReportId = v.ReportId
+			} else {
+				item.Resource = 1
+			}
 		}
 		resp.ListHz = append(resp.ListHz, &item)
 		//if articleType == 1 {