diff --git a/app/chat/model/ChatGroup.php b/app/chat/model/ChatGroup.php index b6aa68a..449b5f7 100644 --- a/app/chat/model/ChatGroup.php +++ b/app/chat/model/ChatGroup.php @@ -28,6 +28,7 @@ class ChatGroup extends BaseModel $shop = Db::name('tb_shop_info')->where(['id' => $shop_id])->find(); if(empty($shop)) { Log::info('店铺不存在'); + return false; } // 查找群数量 $count = Db::name('chat_group')->where(['shop_id' => $shop_id])->count();