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