表情处理

This commit is contained in:
2025-12-05 17:01:06 +08:00
parent c6ffd65ae4
commit 29fda9198d
2 changed files with 5 additions and 1 deletions

View File

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

View File

@@ -42,7 +42,7 @@ use support\Redis;
if(is_array($datInfo)) {
if($datInfo['type'] == 'add_shop') {
// 创建群聊
\app\chat\model\ChatGroup::addShop($datInfo);
\app\chat\model\ChatGroup::addShop($datInfo['shopId']);
}else {
$is_log = false;
$curl_error = '';