表情处理
This commit is contained in:
@@ -32,6 +32,10 @@ class ChatGroup extends BaseModel
|
|||||||
}
|
}
|
||||||
// 查找群数量
|
// 查找群数量
|
||||||
$count = Db::name('chat_group')->where(['shop_id' => $shop_id])->count();
|
$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 . '群';
|
$name = $shop['shop_name'] . '粉丝福利' . $count + 1 . '群';
|
||||||
$avatar = $shop['logo'];
|
$avatar = $shop['logo'];
|
||||||
$now = d();
|
$now = d();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ use support\Redis;
|
|||||||
if(is_array($datInfo)) {
|
if(is_array($datInfo)) {
|
||||||
if($datInfo['type'] == 'add_shop') {
|
if($datInfo['type'] == 'add_shop') {
|
||||||
// 创建群聊
|
// 创建群聊
|
||||||
\app\chat\model\ChatGroup::addShop($datInfo);
|
\app\chat\model\ChatGroup::addShop($datInfo['shopId']);
|
||||||
}else {
|
}else {
|
||||||
$is_log = false;
|
$is_log = false;
|
||||||
$curl_error = '';
|
$curl_error = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user