酒吧房加测试代码判断

This commit is contained in:
2026-01-15 01:06:47 +08:00
parent 1d6b09e20e
commit dd2c676ecc

View File

@@ -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];
}
}
//预测版块 上线前注释掉======👆======