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

Merge branch 'koogua/v1.4.5'

This commit is contained in:
koogua 2021-10-08 11:23:00 +08:00
commit fffb2c4e8e
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 = [];