From 7215a5ff5a7332d27e82687dc6d03efc96eb205b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 9 Sep 2025 15:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=88=BF=E9=97=B4=E7=81=AB?= =?UTF-8?q?=E7=83=AD=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/GiveGift.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/application/api/model/GiveGift.php b/application/api/model/GiveGift.php index 1aa6c3c..fd67c2c 100644 --- a/application/api/model/GiveGift.php +++ b/application/api/model/GiveGift.php @@ -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){