Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
2025-12-04 15:29:57 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ class RoomAuction extends BaseCom
//礼物不能是CP礼物
$cp_gift_ids = explode(',', get_system_config_value('cp_gift_id'));
if (in_array($gift_id, $cp_gift_ids)) {
return ['code' => 0, 'msg' => '礼物不能是CP礼物请重新选择', 'data' => null];
return V( 0, '礼物不能是CP礼物请重新选择');
}
$relation_id = input('relation_id','');
$auction_type = input('auction_type',1);//1真爱拍 2 亲密拍

View File

@@ -54,8 +54,8 @@ class RoomAuction extends Model
}
}
//查询房间是否正在拍卖
$auction = db::name('vs_room_auction')->where('room_id',$room_id)->where('status',2)->find();
if($auction){
$auctions = db::name('vs_room_auction')->where('room_id',$room_id)->where('status',2)->find();
if($auctions){
return ['code' => 0, 'msg' => '房间正在竞拍中!请稍后继续','data' => null];
}
$user_ids = Cache::get('auction_user_'.$room_id);