表情处理
This commit is contained in:
@@ -32,6 +32,10 @@ class ChatGroup extends BaseModel
|
||||
}
|
||||
// 查找群数量
|
||||
$count = Db::name('chat_group')->where(['shop_id' => $shop_id])->count();
|
||||
if($count>=1) {
|
||||
Log::info($shop['shop_name'] . '重复创建群!');
|
||||
return false;
|
||||
}
|
||||
$name = $shop['shop_name'] . '粉丝福利' . $count + 1 . '群';
|
||||
$avatar = $shop['logo'];
|
||||
$now = d();
|
||||
|
||||
Reference in New Issue
Block a user