|
|
@@ -875,14 +875,18 @@ class Events
|
|
|
$kfuid = -1;
|
|
|
$krclient_id = 0;
|
|
|
$kfgroup = -1;
|
|
|
+ $istalking = 1;
|
|
|
|
|
|
$userToKf = $userToKfNew = self::$global->userToKf;
|
|
|
if (isset($userToKfNew[$uid])) {
|
|
|
$kfuid = isset($userToKfNew[$uid]['1']) ? $userToKfNew[$uid]['1'] : -1;
|
|
|
$krclient_id = isset(Gateway::getClientIdByUid($kfuid)['0']) ? Gateway::getClientIdByUid($kfuid)['0'] : 0;
|
|
|
+
|
|
|
+ /*用户可能意外掉线,还可以再连上来的情况下,暂不删除些关联,待公单关闭时再删除
|
|
|
unset($userToKfNew[$uid]);
|
|
|
do {
|
|
|
} while (!self::$global->cas('userToKf', $userToKf, $userToKfNew));
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
$uidSimpleList = $uidSimpleListNew = self::$global->uidSimpleList;
|
|
|
@@ -909,6 +913,7 @@ class Events
|
|
|
}
|
|
|
}
|
|
|
if ($ischange) {
|
|
|
+ $istalking = 0;
|
|
|
do {
|
|
|
} while (!self::$global->cas('userList', $userList, $userListNew));
|
|
|
Gateway::sendToGroup('group_' . $kfgroup, json_encode(['message_type' => 'kfqueuelength', 'leng' => $group_wait_count], 256));
|
|
|
@@ -954,6 +959,7 @@ class Events
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|