Browse Source

我的搜藏分组错误修改

xingzai 3 năm trước cách đây
mục cha
commit
100837baf2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      controllers/research.go

+ 1 - 1
controllers/research.go

@@ -98,7 +98,7 @@ func (this *ResearchController) CollectionList() {
 		return
 	}
 	var condition string
-	condition = `  AND a.category_name LIKE '%` + categoryinfo.PermissionName + `%' AND publish_status = 1 GROUP BY m.industrial_management_id ORDER BY collect_num DESC, publish_date DESC LIMIT 15 `
+	condition = `  AND a.category_name LIKE '%` + categoryinfo.PermissionName + `%' AND publish_status = 1 GROUP BY a.article_id ORDER BY collect_num DESC, publish_date DESC LIMIT 15 `
 	list, err := models.GetArticleCollectionList(condition, user.UserId)
 	if err != nil {
 		br.Msg = "获取信息失败"