瀏覽代碼

fix banner

ziwen 1 年之前
父節點
當前提交
796ce4287e
共有 2 個文件被更改,包括 6 次插入0 次删除
  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
 }
 
 // 列表