diff --git a/application/swoole/service/Event.php b/application/swoole/service/Event.php index 5fbbbbb..5b99b57 100644 --- a/application/swoole/service/Event.php +++ b/application/swoole/service/Event.php @@ -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 {//游客退出 diff --git a/extend/Logic/KefuLogic.php b/extend/Logic/KefuLogic.php index 8694d16..496cbda 100644 --- a/extend/Logic/KefuLogic.php +++ b/extend/Logic/KefuLogic.php @@ -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(); } /** diff --git a/public/static/api/init.json b/public/static/api/init.json index ddb0458..ba47d81 100644 --- a/public/static/api/init.json +++ b/public/static/api/init.json @@ -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" - } - - ] } ] }