|
|
@@ -108,6 +108,11 @@ class Events
|
|
|
*/
|
|
|
public static function onMessage($client_id, $message)
|
|
|
{
|
|
|
+ if ($message!='{"type":"ping"}'){
|
|
|
+ echo "onMessage: ".$message."\r\n";
|
|
|
+ // print_r([self::$global->kfList,self::$global->userList, self::$global->uidSimpleList]);
|
|
|
+ }
|
|
|
+
|
|
|
$message = json_decode($message, true);
|
|
|
switch ($message['type']) {
|
|
|
// 客服初始化
|
|
|
@@ -328,6 +333,8 @@ class Events
|
|
|
*/
|
|
|
public static function onClose($client_id)
|
|
|
{
|
|
|
+ print_r([$client_id,self::$global->uidSimpleList,self::$global->userList]);
|
|
|
+
|
|
|
$isServiceUserOut = false;
|
|
|
// 将会员服务信息,从客服的服务列表中移除
|
|
|
$old = $kfList = self::$global->kfList;
|