增加房间火热值修改

This commit is contained in:
2025-09-09 15:14:13 +08:00
parent 526b9b6c84
commit 7215a5ff5a

View File

@@ -575,8 +575,13 @@ class GiveGift extends Model
//增加房间火热值hot_value
$gift_totalaa = $gift_total * get_system_config_value('coin_charm_exp');
Db::name('vs_room')->where(['id'=>$from_id,'apply_status'=>2])->setInc('hot_value',$gift_totalaa);
Db::name('vs_room')->where(['id'=>$from_id,'apply_status'=>2])->setInc('today_hot_value',$gift_totalaa);
Db::name('vs_room')
->where(['id' => $from_id, 'apply_status' => 2])
->inc('hot_value', $gift_totalaa)
->inc('today_hot_value', $gift_totalaa)
->update();
// Db::name('vs_room')->where(['id'=>$from_id,'apply_status'=>2])->setInc('hot_value',$gift_totalaa);
// Db::name('vs_room')->where(['id'=>$from_id,'apply_status'=>2])->setInc('today_hot_value',$gift_totalaa);
$roomtype = Db::name('vs_room')->where(['id' => $from_id])->value('type_id');
if($roomtype == 6){