酒吧房设置选礼物
This commit is contained in:
@@ -70,7 +70,7 @@ class BarRoom extends Model
|
||||
if($pit_gift){
|
||||
// 使用WHERE条件和影响行数验证确保并发安全
|
||||
$result = db::name('vs_room_bar_pit_gift')
|
||||
->where(['id' => $pit_gift['id'], 'delete_time' => 0])
|
||||
->where(['id' => $pit_gift['id']])
|
||||
->update([
|
||||
'gift_id' => $gift_id,
|
||||
'end_time' => $end_time,
|
||||
|
||||
Reference in New Issue
Block a user