xiexiaoyuan 2 vuotta sitten
vanhempi
commit
93eff7f21a
2 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 2 0
      controller/pc/pc.go
  2. 1 0
      models/response/pc/report.go

+ 2 - 0
controller/pc/pc.go

@@ -182,6 +182,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 			Stage:             chapterItem.Stage,
 			ImgUrl:            "",
 			Type:              "报告合集",
+			ShowType: 1,
 		}
 		bannerResp = resp
 	} else {
@@ -216,6 +217,7 @@ func ClassifyDetailBanner(c *gin.Context) {
 			ClassifyIdFirst:    reportItem.ClassifyIdFirst,
 			ClassifyNameSecond: reportItem.ClassifyNameSecond,
 			ClassifyIdSecond:   reportItem.ClassifyIdSecond,
+			ShowType:           parentClassify.ShowType,
 		}
 
 		if parentClassify.ShowType == 1 || parentClassify.ShowType == 3 {

+ 1 - 0
models/response/pc/report.go

@@ -105,6 +105,7 @@ type DetailBannerResp struct {
 	ClassifyNameSecond string
 	ClassifyIdSecond   int
 	Type               string
+	ShowType           uint8
 }
 
 type LatestReportBanner struct {