判断是不是商家发的
This commit is contained in:
@@ -231,7 +231,12 @@ namespace extend\chat\model;
|
||||
Gateway::sendToClient($client_id, self::sendGormat($message, [], 0));
|
||||
return;
|
||||
}
|
||||
|
||||
// 判断是不是商家发的
|
||||
if($is_member['role'] == 1) {
|
||||
$notice_data['is_shop'] = 1; // 商家
|
||||
}else {
|
||||
$notice_data['is_shop'] = 2; // 不是商家
|
||||
}
|
||||
// 如果是单聊推给对方
|
||||
if($message['chat_type'] == 1) {
|
||||
if($message['to_user_type'] == 1) {
|
||||
|
||||
Reference in New Issue
Block a user