1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-02 07:04:56 +08:00

热门问题增加过滤条件

This commit is contained in:
koogua 2021-07-13 10:02:49 +08:00
parent c7e34da748
commit 7fc35664b2

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();