修改房间类型

This commit is contained in:
2025-11-28 11:48:12 +08:00
parent edcc78affd
commit bc66d40f88

View File

@@ -1872,6 +1872,10 @@ class Room extends Model
} }
} }
if($roomInfo['type_id'] == 9){
db::name('vs_song_log')->where(['room_id' => $room_id,'status' => ['<>',2]])->update(['status' => 2]);
}
if($roomInfo['type_id'] == 10 && $roomInfo['sign_type'] != 0){ if($roomInfo['type_id'] == 10 && $roomInfo['sign_type'] != 0){
return ['code' => 0, 'msg' => '请先结束签约后在修改房间类型', 'data' => null]; return ['code' => 0, 'msg' => '请先结束签约后在修改房间类型', 'data' => null];
} }