From 19d2b6c9f66490c515b300d16a4a8b03553c9525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Tue, 16 Dec 2025 16:18:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0-=E6=B7=BB=E5=8A=A0=E6=88=BF?= =?UTF-8?q?=E9=97=B4=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 857e1018..a5d0d960 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -20,7 +20,7 @@ class Room extends Model //创建房间 创建 public function user_create_room($uid, $room_name,$room_cover,$room_intro,$type = 0) { - $user_mobile = model('User')->where('id', $uid)->value('mobile'); + $user_mobile = model('api/User')->where('id', $uid)->value('mobile'); if ($user_mobile == null) { return ['code' => 0, 'msg' => '请先绑定手机号', 'data' => null]; } @@ -88,7 +88,7 @@ class Room extends Model if($type <= 0){ //创建房间麦位默认点唱10个麦位 - $reslut1 = model('RoomPit')->create_room_pit(1,$room_id); + $reslut1 = model('api/RoomPit')->create_room_pit(1,$room_id); if($reslut1['code'] == 0){ Db::rollback(); return ['code' => 0, 'msg' => '创建失败', 'data' => null]; @@ -103,7 +103,7 @@ class Room extends Model } //创建腾讯云群组 - $reslut = model('Tencent')->create_group($uid,'room'.$room_id); + $reslut = model('api/Tencent')->create_group($uid,'room'.$room_id); if($reslut['code'] != 1){ Db::rollback(); return['code' => 0, 'msg' => $reslut['msg'], 'data' => null];