|
|
@@ -261,6 +261,10 @@ class Kefu extends BaseController
|
|
|
}
|
|
|
|
|
|
Db::commit();
|
|
|
+
|
|
|
+ //通知关闭聊天框
|
|
|
+ wsSendMsg($old_cs_uid,'closeChat',['user_id'=>$user_id]);
|
|
|
+
|
|
|
//通知客服已接线
|
|
|
wsSendMsg(0,'handleChat',['user_id'=>$user_id]);
|
|
|
} catch (\Exception $e) {
|
|
|
@@ -334,6 +338,10 @@ class Kefu extends BaseController
|
|
|
}
|
|
|
|
|
|
Db::commit();
|
|
|
+
|
|
|
+ //通知关闭聊天框
|
|
|
+ wsSendMsg($old_cs_uid,'closeChat',['user_id'=>$user_id]);
|
|
|
+
|
|
|
//通知客服已结束
|
|
|
wsSendMsg(0,'handleChat',['user_id'=>$user_id]);
|
|
|
|