Browse Source

fix banner

ziwen 1 year ago
parent
commit
796ce4287e
2 changed files with 6 additions and 0 deletions
  1. 5 0
      controllers/banner.go
  2. 1 0
      models/banner.go

+ 5 - 0
controllers/banner.go

@@ -218,6 +218,7 @@ func (this *BaseBannerController) ListYx() {
 	resp := new(models.BannerUrlYxListResp)
 	var listA []*models.BannerUrlYxResp
 	var listB []*models.BannerUrlYxResp
+	var listC []*models.BannerUrlYxResp
 	listA = []*models.BannerUrlYxResp{
 		&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_1.png", Path: "/index/"},
 		&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_2.png", Path: ""},
@@ -225,10 +226,14 @@ func (this *BaseBannerController) ListYx() {
 
 	listB = []*models.BannerUrlYxResp{
 		&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_3.png", Path: "/index/"},
+	}
+
+	listC =  []*models.BannerUrlYxResp{
 		&models.BannerUrlYxResp{IndexImg: "https://hzstatic.hzinsights.com/banner/yx/web_4.png", Path: ""},
 	}
 	resp.ListA = listA
 	resp.ListB = listB
+	resp.ListC = listC
 	br.Ret = 200
 	br.Success = true
 	br.Msg = "获取成功"

+ 1 - 0
models/banner.go

@@ -84,6 +84,7 @@ type BannerUrlYxResp struct {
 type BannerUrlYxListResp struct {
 	ListA []*BannerUrlYxResp
 	ListB []*BannerUrlYxResp
+	ListC []*BannerUrlYxResp
 }
 
 // 列表