From b611033c0f1716b3598e92ff110ecee905f115da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Mon, 25 Aug 2025 16:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E5=8F=8B=E9=80=80=E5=87=BA=E7=A7=81?= =?UTF-8?q?=E5=AF=86=E5=B1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Friend.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/application/api/model/Friend.php b/application/api/model/Friend.php index 7f3c2e6..1fd3e5d 100644 --- a/application/api/model/Friend.php +++ b/application/api/model/Friend.php @@ -160,6 +160,10 @@ class Friend extends Model //创建小房间 $room_ids = model('api/Room')->user_create_room($user1,'的电影房',get_system_config_value('web_site').'/data/avatar/head_pic.png','交友房产生的一次性房间',7); if($room_ids['code'] != 1){ + //推送给前端消息 + $text['text'] = '交友结束'; + $text['step'] = 1;//1 等待邂逅 2 心动连线 3 牵手良缘 + model('api/Chat')->sendMsg(1049,$room_id,$text); return ['code' => 0, 'msg' => 'cp电影房创建失败,请联系管理员','data' => null]; } @@ -220,6 +224,10 @@ class Friend extends Model model('api/Chat')->sendMsg(1049,$room_id,$text); return ['code' => 1, 'msg' => '创建关系成功', 'data' => null]; } else { + //推送给前端消息 + $text['text'] = '交友结束'; + $text['step'] = 1;//1 等待邂逅 2 心动连线 3 牵手良缘 + model('api/Chat')->sendMsg(1049,$room_id,$text); return ['code' => 0, 'msg' => '创建关系失败!', 'data' => null]; } }