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;//平台收益