mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-26 20:52:44 +08:00
热门问题增加过滤条件
This commit is contained in:
parent
a1d38eee9a
commit
69f41d71c7
@ -111,6 +111,7 @@ class HotQuestionList extends Cache
|
|||||||
{
|
{
|
||||||
return QuestionModel::query()
|
return QuestionModel::query()
|
||||||
->where('create_time > :create_time:', ['create_time' => $createTime])
|
->where('create_time > :create_time:', ['create_time' => $createTime])
|
||||||
|
->andWhere('published = 1 AND deleted = 0')
|
||||||
->orderBy('score DESC')
|
->orderBy('score DESC')
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->execute();
|
->execute();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user