1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 12:23:06 +08:00

修正ImActiveGroupList缓存查询条件引发的错误

This commit is contained in:
koogua 2021-10-08 11:20:58 +08:00
parent 8abe4d1e8e
commit 3d1b8f1274
3 changed files with 3 additions and 10 deletions

View File

@ -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();

View File

@ -32,9 +32,7 @@ class ImActiveUserList extends Cache
{
$users = $this->findUsers($id);
if (empty($users)) {
return [];
}
if (empty($users)) return [];
$result = [];

View File

@ -32,9 +32,7 @@ class ImGroupActiveUserList extends Cache
{
$users = $this->findUsers($id);
if (empty($users)) {
return [];
}
if (empty($users)) return [];
$result = [];