From dd2c676eccd2b1151d6c382f7f1b6d382b5b4518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Thu, 15 Jan 2026 01:06:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=92=E5=90=A7=E6=88=BF=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BB=A3=E7=A0=81=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/BarRoom.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/application/api/model/BarRoom.php b/application/api/model/BarRoom.php index 68369a66..cf22be5b 100644 --- a/application/api/model/BarRoom.php +++ b/application/api/model/BarRoom.php @@ -195,10 +195,12 @@ class BarRoom extends Model } //预测版块 上线前注释掉 ======👇====== + if (\think\Env::get('app.system_type','prod') != "prod") { //获取 房间ID - $room_last_id = db::name('vs_room')->order('id desc')->value('id'); - if($room_last_id >= 19998){ - return ['code' => 0, 'msg' =>'房间已满,暂时不能创建房间,请联系运营或管理', 'data' => null]; + $room_last_id = db::name('vs_room')->order('id desc')->value('id'); + if ($room_last_id >= 19998) { + return ['code' => 0, 'msg' => '房间已满,暂时不能创建房间,请联系运营或管理', 'data' => null]; + } } //预测版块 上线前注释掉======👆======