酒吧房加测试代码判断
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
//预测版块 上线前注释掉======👆======
|
||||
|
||||
|
||||
Reference in New Issue
Block a user