浏览代码

Merge branch 'yb/5.3' into debug

hsun 2 年之前
父节点
当前提交
a2371e97c4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      models/tables/yb_community_question_comment/query.go

+ 2 - 2
models/tables/yb_community_question_comment/query.go

@@ -129,10 +129,10 @@ func GetUserAvatarRandom() (item *UserAvatarRandom, err error) {
 	return
 }
 
-// GetHotListByCommunityQuestionIds 根据问答id列表获取精选留言-精选时间倒序
+// GetHotListByCommunityQuestionIds 根据问答id列表获取精选留言-精选时间倒序(2022-0823不再精选,获取所有评论)
 func GetHotListByCommunityQuestionIds(communityQuestionIds []uint32) (items []*YbCommunityQuestionComment, err error) {
 	err = global.DEFAULT_MYSQL.Model(YbCommunityQuestionComment{}).
-		Where("community_question_id IN (?) AND enabled = 1 AND is_hot = 1 AND type = 1", communityQuestionIds).
+		Where("community_question_id IN (?) AND enabled = 1 AND type = 1", communityQuestionIds).
 		Order("hot_time DESC").
 		Find(&items).Error
 	return