Procházet zdrojové kódy

Merge branch 'cygx_6.0' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai před 3 roky
rodič
revize
66208584dd
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      controllers/search.go

+ 3 - 0
controllers/search.go

@@ -435,6 +435,9 @@ func (this *SearchController) ListHomeArtAndChart() {
 		chartList[k].IsNeedJump = true
 		chartList[k].Source = 2
 	}
+	if len(chartList) == 0 {
+		chartList = make([]*models.HomeChartListResp, 0)
+	}
 	resp.ChartList = chartList
 	var result []*models.SearchItem
 	var total int64