瀏覽代碼

no message

xingzai 2 年之前
父節點
當前提交
f58e10e951
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      controllers/search.go

+ 3 - 0
controllers/search.go

@@ -484,6 +484,9 @@ func (this *SearchController) ListHomeArtAndChart() {
 	if chartTotal > int(total) {
 		total = int64(chartTotal)
 	}
+	if listType == 1 {
+		total = total + int64(chartTotal)
+	}
 	page := paging.GetPaging(currentIndex, pageSize, int(total))
 	resp.Paging = page
 	resp.List = result