From 3d1b8f1274c9312e1ea1876e68bc68680fcf9a87 Mon Sep 17 00:00:00 2001 From: koogua Date: Fri, 8 Oct 2021 11:20:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3ImActiveGroupList=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6=E5=BC=95=E5=8F=91?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Caches/ImActiveGroupList.php | 5 +---- app/Caches/ImActiveUserList.php | 4 +--- app/Caches/ImGroupActiveUserList.php | 4 +--- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/app/Caches/ImActiveGroupList.php b/app/Caches/ImActiveGroupList.php index 581d3044..a91b3a2b 100644 --- a/app/Caches/ImActiveGroupList.php +++ b/app/Caches/ImActiveGroupList.php @@ -33,9 +33,7 @@ class ImActiveGroupList extends Cache { $groups = $this->findGroups(); - if (empty($groups)) { - return []; - } + if (empty($groups)) return []; $result = []; @@ -72,7 +70,6 @@ class ImActiveGroupList extends Cache ->orderBy('total_count DESC') ->where('receiver_type = :type:', ['type' => ImMessageModel::TYPE_GROUP]) ->betweenWhere('create_time', $startTime, $endTime) - ->andWhere('published = 1') ->andWhere('deleted = 0') ->limit($limit) ->execute(); diff --git a/app/Caches/ImActiveUserList.php b/app/Caches/ImActiveUserList.php index cc422afa..fde85a40 100644 --- a/app/Caches/ImActiveUserList.php +++ b/app/Caches/ImActiveUserList.php @@ -32,9 +32,7 @@ class ImActiveUserList extends Cache { $users = $this->findUsers($id); - if (empty($users)) { - return []; - } + if (empty($users)) return []; $result = []; diff --git a/app/Caches/ImGroupActiveUserList.php b/app/Caches/ImGroupActiveUserList.php index a69a0418..fef5169e 100644 --- a/app/Caches/ImGroupActiveUserList.php +++ b/app/Caches/ImGroupActiveUserList.php @@ -32,9 +32,7 @@ class ImGroupActiveUserList extends Cache { $users = $this->findUsers($id); - if (empty($users)) { - return []; - } + if (empty($users)) return []; $result = [];