1
0
mirror of https://gitee.com/zhc02/timely_service.git synced 2025-08-01 04:08:00 +08:00
This commit is contained in:
柏尘 2019-12-17 14:03:50 +08:00
parent 681e925f7e
commit c97111cc06
3 changed files with 3 additions and 18 deletions

View File

@ -151,6 +151,7 @@ class Event
'visitor_avatar' => $visitor['visitor_avatar'],
'visitor_ip' => $visitor['visitor_ip'],
'kefu_id' => $kefu_info['data']['kefu_id'],
'kefu_name' => $kefu_info['data']['kefu_name'],
'kefu_code' => ltrim($kefu_info['data']['kefu_code'], 'KF_'),
'start_date' => date('Y-m-d H:i:s'),
]);
@ -268,7 +269,7 @@ class Event
$uid = self::$online[$fd];
if (strstr($uid, "KF_") !== false) { //客服退出
//修改状态
KefuLogic::setKefuOnlineStatus(ltrim($uid, 'KF_'), 0, 0);
KefuLogic::setKefuOnlineStatus(ltrim($uid, 'KF_'), 0, 2);
unset(self::$online[$fd], self::$kefu[$uid]);
} else {//游客退出

View File

@ -156,7 +156,7 @@ class KefuLogic
*/
public static function findKefuByCodeOnline($code)
{
return Db::name('kefu_info')->where('kefu_code', $code)->where('kefu_status', 1)->find();
return Db::name('kefu_info')->where('kefu_code', $code)->find();
}
/**

View File

@ -76,22 +76,6 @@
"target": "_self"
}
]
},
{
"title": "部署",
"href": "",
"icon": "fa fa-snowflake-o",
"target": "",
"child": [
{
"title": "对接方式",
"href": "page/button.html",
"icon": "fa fa-snowflake-o",
"target": "_self"
}
]
}
]
}