Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -1761,6 +1761,13 @@ class Room extends Model
|
|||||||
return ['code' => 0, 'msg' => '请先结束交友后在修改房间类型', 'data' => null];
|
return ['code' => 0, 'msg' => '请先结束交友后在修改房间类型', 'data' => null];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($roomInfo['type_id'] == 2){
|
||||||
|
$room_auction = db::name('vs_room_auction')->where(['room_id' => $room_id,'status' => 2])->select();
|
||||||
|
if($room_auction){
|
||||||
|
return ['code' => 0, 'msg' => '请先结束竞拍后在修改房间类型', 'data' => null];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//开启事务
|
//开启事务
|
||||||
db::startTrans();
|
db::startTrans();
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user