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 = [];