From 36ce1a8c1707653a6bb92675f8c1ea6393e69ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 10 Oct 2025 16:22:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/GiveGift.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/api/model/GiveGift.php b/application/api/model/GiveGift.php index 42049cc..6d9c615 100644 --- a/application/api/model/GiveGift.php +++ b/application/api/model/GiveGift.php @@ -731,15 +731,15 @@ class GiveGift extends Model return ['code' => 0, 'msg' => '房主收益失败', 'data' => null]; } } - }else{ - //增加房主收益并记录日志 - $room_owner_earning = $this -> change_user_cion_or_earnings_log($room_owner,$room_owner_earnings,$from_id,2,18,'房主收益'); - if(!$room_owner_earning){ - return ['code' => 0, 'msg' => '房主收益失败', 'data' => null]; - } + }else{ + //增加房主收益并记录日志 + $room_owner_earning = $this -> change_user_cion_or_earnings_log($room_owner,$room_owner_earnings,$from_id,2,18,'房主收益'); + if(!$room_owner_earning){ + return ['code' => 0, 'msg' => '房主收益失败', 'data' => null]; } } } + } if($gift_info['label'] == 2){ foreach ($gift_box as $gv) { //记录送礼利率和各方收益