1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 20:52:44 +08:00

热门问题增加过滤条件

This commit is contained in:
koogua 2021-07-13 10:02:49 +08:00
parent a1d38eee9a
commit 69f41d71c7

View File

@ -111,6 +111,7 @@ class HotQuestionList extends Cache
{
return QuestionModel::query()
->where('create_time > :create_time:', ['create_time' => $createTime])
->andWhere('published = 1 AND deleted = 0')
->orderBy('score DESC')
->limit($limit)
->execute();