From 69f41d71c7ebb37e1be4ef15cd009f17a872dbb7 Mon Sep 17 00:00:00 2001 From: koogua Date: Tue, 13 Jul 2021 10:02:49 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E9=97=A8=E9=97=AE=E9=A2=98=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Caches/HotQuestionList.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Caches/HotQuestionList.php b/app/Caches/HotQuestionList.php index d6d533b8..e09b517d 100644 --- a/app/Caches/HotQuestionList.php +++ b/app/Caches/HotQuestionList.php @@ -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();