|
|
@@ -41,8 +41,8 @@ class Events
|
|
|
public static function onWorkerStart($worker)
|
|
|
{
|
|
|
if (empty(self::$db)) {
|
|
|
- //self::$db = new \Workerman\MySQL\Connection('192.168.2.168', '3306', 'vali', '123456', 'customer_service');
|
|
|
- self::$db = new \Workerman\MySQL\Connection('192.168.2.200', '3306', 'vali', '1234', 'customer_service');
|
|
|
+ self::$db = new \Workerman\MySQL\Connection('192.168.2.168', '3306', 'vali', '123456', 'customer_service');
|
|
|
+ //self::$db = new \Workerman\MySQL\Connection('192.168.2.200', '3306', 'vali', '1234', 'customer_service');
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -209,7 +209,7 @@ class Events
|
|
|
return;
|
|
|
} else {
|
|
|
self::DebugOut($message, "OnMessage");
|
|
|
- self::DebugOut([self::$global->kfList, self::$global->userList, self::$global->uidSimpleList, self::$global->userToKf, $_SESSION['remotip'] . ':' . $_SESSION['remotport']],'Msg mem: ');
|
|
|
+ self::DebugOut([self::$global->kfList, self::$global->userList, self::$global->uidSimpleList, self::$global->userToKf, $_SESSION['remotip'] . ':' . $_SESSION['remotport']], 'Msg mem: ');
|
|
|
}
|
|
|
$message = json_decode($message, true);
|
|
|
if (isset($message['type'])) {
|
|
|
@@ -602,10 +602,12 @@ class Events
|
|
|
unset($noticeUser);
|
|
|
|
|
|
// 通知客服端绑定会员的信息
|
|
|
+ //$userinfodetail = self::getClientIndo($uid);
|
|
|
+ $userinfoarr = ['id' => $uid, 'name' => $oldlog['user_name'], 'avatar' => $oldlog['user_avatar'], 'website' => $oldlog['website'], 'browse' => $oldlog['browse'], 'system' => $oldlog['system'], 'ip' => $oldlog['user_ip'], 'group' => $oldlog['group_id'], 'client_id' => $oldlog['client_id']];
|
|
|
$noticeKf = [
|
|
|
'message_type' => 'connect',
|
|
|
'data' => [
|
|
|
- 'user_info' => self::getClientIndo($uid),
|
|
|
+ 'user_info' => $userinfoarr,
|
|
|
'conversationId' => $new_id,
|
|
|
]
|
|
|
];
|