From 3a9e983296bb0bf469028b079b4a4dfc4fb25aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Sat, 8 Nov 2025 11:43:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=B6=E7=9B=8A=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E6=AF=94=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Gift.php | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/application/api/model/Gift.php b/application/api/model/Gift.php index ac6af69c..9ef7236d 100644 --- a/application/api/model/Gift.php +++ b/application/api/model/Gift.php @@ -26,8 +26,8 @@ class Gift extends Model // $rate = 0.2; $rate = 0.1; $this->room_owner_rate = $rate; - $this->user_rate = 0.6; - $this->guild_user_rate = 0.63; + $this->user_rate = 0.6; + $this->guild_user_rate = 0.63; } @@ -320,9 +320,9 @@ class Gift extends Model if(!empty($user_guild_id)){ - $receiver_profit = $gift_total_price * $this->user_rate; - }else{ $receiver_profit = $gift_total_price * $this->guild_user_rate; + }else{ + $receiver_profit = $gift_total_price * $this->user_rate; } @@ -827,15 +827,11 @@ class Gift extends Model }else{ $this_producer_profit = 0; } - - // $this_receiver_profit = $this_gift_total_price * $config['gift_earnings_rate'];//接收人收益 - - - // $this_receiver_profit = $this_gift_total_price * 0.6;//接收人收益 + if(!empty($user_guild_id)){ - $this_receiver_profit = $this_gift_total_price * $this->user_rate; - }else{ $this_receiver_profit = $this_gift_total_price * $this->guild_user_rate; + }else{ + $this_receiver_profit = $this_gift_total_price * $this->user_rate; } @@ -1877,13 +1873,10 @@ class Gift extends Model $this_producer_profit = 0; } - // $this_receiver_profit = $this_gift_total_price * $config['gift_earnings_rate'];//接收人收益 - // $this_receiver_profit = $this_gift_total_price * 0.6;//接收人收益 - if(!empty($user_guild_id)){ - $this_receiver_profit = $this_gift_total_price * $this->user_rate;//接收人收益 - }else{ $this_receiver_profit = $this_gift_total_price * $this->guild_user_rate;//接收人收益 + }else{ + $this_receiver_profit = $this_gift_total_price * $this->user_rate;//接收人收益 } $this_platform_profit = $this_gift_total_price - $this_room_owner_profits - $this_receiver_profit - $this_producer_profit;//平台收益