|
@@ -103,6 +103,9 @@ class User extends BaseModel
|
|
|
Message::where(['from_user' => $user_id, 'to_user' => $old_cs_uid])->update(['to_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
Message::where(['from_user' => $user_id, 'to_user' => $old_cs_uid])->update(['to_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
|
Message::where(['from_user' => $old_cs_uid, 'to_user' => $user_id])->update(['from_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
Message::where(['from_user' => $old_cs_uid, 'to_user' => $user_id])->update(['from_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //通知关闭聊天框
|
|
|
|
|
+ wsSendMsg($old_cs_uid,'closeChat',['user_id'=>$user_id]);
|
|
|
}
|
|
}
|
|
|
//结束客服忙碌时间
|
|
//结束客服忙碌时间
|
|
|
KefuTime::endData($admin_id, 1);
|
|
KefuTime::endData($admin_id, 1);
|