From f8b444e395f9ad426d31f9560bfb16a405a1fe5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Mon, 17 Nov 2025 17:18:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=81=E7=A4=BC=E5=88=A9=E6=B6=A6=E8=AE=A1?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/GiveGift.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/api/model/GiveGift.php b/application/api/model/GiveGift.php index 8b99f80..52c6949 100644 --- a/application/api/model/GiveGift.php +++ b/application/api/model/GiveGift.php @@ -305,7 +305,7 @@ class GiveGift extends Model $receiver_earningss = $this -> receiver_earnings($to_id,$gv['gift_price'],$from_type); $room_owner_earningss = $this -> receiver_earnings($room_owner,$gv['gift_price'],99);//结果是钻石 $gift_rate = $this->record_gift_profit($to_uid,$room_owner_earningsg,$gv['gift_price'],$gv['give_gift_id'],$receiver_earningss,$room_owner_earningss); - if (!$gift_rate['code']==0) { + if ($gift_rate['code']==0) { Db::rollback(); return ['code' => 0, 'msg' => $gift_rate['msg'], 'data' => null]; } @@ -314,7 +314,7 @@ class GiveGift extends Model //记录送礼利率和各方收益 //收礼人是否加入公会 $gift_rate = $this->record_gift_profit($to_uid,$room_owner_earningsg,$gift_price,$give_gift,$receiver_earnings,$room_owner_earnings); - if (!$gift_rate['code']==0) { + if ($gift_rate['code']==0) { Db::rollback(); return ['code' => 0, 'msg' => $gift_rate['msg'], 'data' => null]; } @@ -718,7 +718,7 @@ class GiveGift extends Model $receiver_earningss = $this -> receiver_earnings($to_id,$gv['gift_price'],$from_type); $room_owner_earningss = $this -> receiver_earnings($room_owner,$gv['gift_price'],99);//结果是钻石 $gift_rate = $this->record_gift_profit($to_uid,$room_owner_earningsg,$gv['gift_price'],$gv['give_gift_id'],$receiver_earningss,$room_owner_earningss); - if (!$gift_rate['code']==0) { + if ($gift_rate['code']==0) { Db::rollback(); return ['code' => 0, 'msg' => $gift_rate['msg'], 'data' => null]; } @@ -727,7 +727,7 @@ class GiveGift extends Model //记录送礼利率和各方收益 //收礼人是否加入公会 $gift_rate = $this->record_gift_profit($to_uid,$room_owner_earningsg,$gift_price,$give_gift,$receiver_earnings,$room_owner_earnings); - if (!$gift_rate['code']==0) { + if ($gift_rate['code']==0) { Db::rollback(); return ['code' => 0, 'msg' => $gift_rate['msg'], 'data' => null]; }