|
|
@ -77,7 +77,11 @@ class Message extends BaseModel |
|
|
$chatSetting = $globalConfig['chatInfo']; |
|
|
$chatSetting = $globalConfig['chatInfo']; |
|
|
if($param['toContactId']!=-1){ |
|
|
if($param['toContactId']!=-1){ |
|
|
if ($is_group == 0) { |
|
|
if ($is_group == 0) { |
|
|
$kefuUser=$chatSetting['autoAddUser']['user_ids'] ?? []; |
|
|
$kefuUser = []; |
|
|
|
|
|
$status = $chatSetting['autoAddUser']['status'] ?? 0; |
|
|
|
|
|
if ($status == 1) { |
|
|
|
|
|
$kefuUser=$chatSetting['autoAddUser']['user_ids'] ?? []; |
|
|
|
|
|
} |
|
|
$manageUser=User::where([['status','=',1],['role','>',0]])->column('user_id'); |
|
|
$manageUser=User::where([['status','=',1],['role','>',0]])->column('user_id'); |
|
|
$kefu=array_unique(array_merge($kefuUser,$manageUser)); |
|
|
$kefu=array_unique(array_merge($kefuUser,$manageUser)); |
|
|
$csUid = self::$userInfo['cs_uid'] ?? 0; |
|
|
$csUid = self::$userInfo['cs_uid'] ?? 0; |
|
|
|