Jelajahi Sumber

近期更新主题,热度标签回显

xingzai 2 tahun lalu
induk
melakukan
58b4512dc2
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      controllers/research.go

+ 1 - 2
controllers/research.go

@@ -48,7 +48,7 @@ func (this *ResearchController) NewList() {
 	}
 	mapHot := make(map[string]int)
 
-	condition := ` ORDER BY publish_date DESC  `
+	condition := ` ORDER BY sum_num DESC  `
 	listHot, err := models.GetThemeHeatList(categoryinfo.PermissionName, user.UserId, condition, 0, 3)
 	if err != nil {
 		br.Msg = "获取信息失败"
@@ -160,7 +160,6 @@ func (this *ResearchController) HotList() {
 	if themeType != 2 {
 		condition = `ORDER BY sum_num DESC `
 	} else {
-		//condition = `ORDER BY sum_num DESC `
 		condition = `ORDER BY publish_date DESC `
 	}
 	categoryinfo, err := models.GetChartPermissionById(chartPermissionId)