Browse Source

修改权益分类

rdluck 4 years ago
parent
commit
7ce1b8c4ce
1 changed files with 16 additions and 4 deletions
  1. 16 4
      controllers/report.go

+ 16 - 4
controllers/report.go

@@ -139,7 +139,11 @@ func (this *ReportController) Detail() {
 	}
 
 	if report.ClassifyNameFirst == "权益研报" {
-		report.TitleType = "图说逻辑"
+		if report.ClassifyNameSecond == "近期路演精华" {
+			report.TitleType = "图说逻辑"
+		} else {
+			report.TitleType = "权益"
+		}
 	} else {
 		report.TitleType = "FICC"
 	}
@@ -188,7 +192,11 @@ func (this *ReportController) Detail() {
 			recommendList[i].HasPermission = 1
 		}
 		if item.ClassifyNameFirst == "权益研报" {
-			recommendList[i].TitleType = "图说逻辑"
+			if recommendList[i].ClassifyNameSecond == "近期路演精华" {
+				recommendList[i].TitleType = "图说逻辑"
+			} else {
+				recommendList[i].TitleType = "权益"
+			}
 		} else {
 			recommendList[i].TitleType = "FICC"
 		}
@@ -268,7 +276,11 @@ func (this *ReportController) ListReport() {
 		}
 
 		if item.ClassifyNameFirst == "权益研报" {
-			list[i].TitleType = "图说逻辑"
+			if list[i].ClassifyNameSecond == "近期路演精华" {
+				list[i].TitleType = "图说逻辑"
+			} else {
+				list[i].TitleType = "权益"
+			}
 		} else {
 			list[i].TitleType = "FICC"
 		}
@@ -465,4 +477,4 @@ func (this *ReportController) AuthorDetail() {
 	br.Success = true
 	br.Msg = "获取成功"
 	br.Data = author
-}
+}