|
|
@@ -622,9 +622,10 @@ class Events
|
|
|
}
|
|
|
|
|
|
if (isset($kfList[$message['group']][$message['uid']])) {
|
|
|
- Gateway::sendToCurrentClient(json_encode(['message_type' => 'reLoginErr', 'msg' => '你的账号已经登陆过,请先退出再登陆'], 256));
|
|
|
- Gateway::closeCurrentClient();
|
|
|
- return;
|
|
|
+ $oldcontid = $kfList[$message['group']][$message['uid']]['client_id'];
|
|
|
+ Gateway::sendToClient($oldcontid, (json_encode(['message_type' => 'reLoginErr', 'msg' => '你的账号在其它登陆,本次下线'], 256)));
|
|
|
+ Gateway::closeClient($oldcontid);
|
|
|
+ sleep(3);
|
|
|
}
|
|
|
|
|
|
// 如果该客服未在内存中记录则记录
|