Browse Source

no message

xingzai 3 years ago
parent
commit
da3f14307a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/research.go

+ 2 - 2
controllers/research.go

@@ -46,7 +46,7 @@ func (this *ResearchController) NewList() {
 	}
 	mapHot := make(map[string]int)
 
-	condition := ` ORDER BY sum_num DESC LIMIT 15 `
+	condition := ` ORDER BY sum_num DESC LIMIT 3 `
 	listHot, err := models.GetThemeHeatList(categoryinfo.PermissionName, user.UserId, condition)
 	if err != nil {
 		br.Msg = "获取信息失败"
@@ -180,7 +180,7 @@ func (this *ResearchController) HotList() {
 	}
 	mapHot := make(map[string]int)
 
-	condition = ` ORDER BY sum_num DESC LIMIT 15 `
+	condition = ` ORDER BY sum_num DESC LIMIT 3 `
 	listHot, err := models.GetThemeHeatList(categoryinfo.PermissionName, user.UserId, condition)
 	if err != nil {
 		br.Msg = "获取信息失败"