mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-07-02 07:04:56 +08:00
热门问题增加过滤条件
This commit is contained in:
parent
c7e34da748
commit
7fc35664b2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user