mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-08-11 08:51:38 +08:00
修正ImActiveGroupList缓存查询条件引发的错误
This commit is contained in:
parent
8abe4d1e8e
commit
3d1b8f1274
@ -33,9 +33,7 @@ class ImActiveGroupList extends Cache
|
|||||||
{
|
{
|
||||||
$groups = $this->findGroups();
|
$groups = $this->findGroups();
|
||||||
|
|
||||||
if (empty($groups)) {
|
if (empty($groups)) return [];
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
@ -72,7 +70,6 @@ class ImActiveGroupList extends Cache
|
|||||||
->orderBy('total_count DESC')
|
->orderBy('total_count DESC')
|
||||||
->where('receiver_type = :type:', ['type' => ImMessageModel::TYPE_GROUP])
|
->where('receiver_type = :type:', ['type' => ImMessageModel::TYPE_GROUP])
|
||||||
->betweenWhere('create_time', $startTime, $endTime)
|
->betweenWhere('create_time', $startTime, $endTime)
|
||||||
->andWhere('published = 1')
|
|
||||||
->andWhere('deleted = 0')
|
->andWhere('deleted = 0')
|
||||||
->limit($limit)
|
->limit($limit)
|
||||||
->execute();
|
->execute();
|
||||||
|
@ -32,9 +32,7 @@ class ImActiveUserList extends Cache
|
|||||||
{
|
{
|
||||||
$users = $this->findUsers($id);
|
$users = $this->findUsers($id);
|
||||||
|
|
||||||
if (empty($users)) {
|
if (empty($users)) return [];
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
|
@ -32,9 +32,7 @@ class ImGroupActiveUserList extends Cache
|
|||||||
{
|
{
|
||||||
$users = $this->findUsers($id);
|
$users = $this->findUsers($id);
|
||||||
|
|
||||||
if (empty($users)) {
|
if (empty($users)) return [];
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
$result = [];
|
$result = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user