|
|
@@ -235,7 +235,7 @@ class Kefu extends BaseController
|
|
|
$robot_id = $friend->friend_user_id;
|
|
|
$friend->friend_user_id = $cs_uid;
|
|
|
$friend->save();
|
|
|
- $chat_identify = $cs_uid . '-' . $user_id;
|
|
|
+ $chat_identify = chat_identify($cs_uid,$user_id);
|
|
|
Message::where(['from_user' => $user_id, 'to_user' => $robot_id])->update(['to_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
|
Message::where(['from_user' => $robot_id, 'to_user' => $user_id])->update(['from_user' => $cs_uid, 'chat_identify' => $chat_identify, 'is_read' => 1]);
|
|
|
}
|
|
|
@@ -287,7 +287,7 @@ class Kefu extends BaseController
|
|
|
$friend->friend_user_id = $cs_uid;
|
|
|
$friend->save();
|
|
|
|
|
|
- $chat_identify = $cs_uid . '-' . $user_id;
|
|
|
+ $chat_identify = chat_identify($cs_uid,$user_id);
|
|
|
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]);
|
|
|
KefuTime::endData($admin_id, 3, $old_cs_uid); //结束接线时间
|
|
|
@@ -371,7 +371,7 @@ class Kefu extends BaseController
|
|
|
$friend->friend_user_id = $cs_uid;
|
|
|
$friend->save();
|
|
|
|
|
|
- $chat_identify = $cs_uid . '-' . $user_id;
|
|
|
+ $chat_identify = chat_identify($cs_uid,$user_id);
|
|
|
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]);
|
|
|
}
|