修改收益计算比例

This commit is contained in:
2025-11-08 11:43:27 +08:00
parent cbcaa266ce
commit 3a9e983296

View File

@@ -320,9 +320,9 @@ class Gift extends Model
if(!empty($user_guild_id)){ if(!empty($user_guild_id)){
$receiver_profit = $gift_total_price * $this->user_rate;
}else{
$receiver_profit = $gift_total_price * $this->guild_user_rate; $receiver_profit = $gift_total_price * $this->guild_user_rate;
}else{
$receiver_profit = $gift_total_price * $this->user_rate;
} }
@@ -828,14 +828,10 @@ class Gift extends Model
$this_producer_profit = 0; $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)){ 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; $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_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)){ 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;//接收人收益 $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;//平台收益 $this_platform_profit = $this_gift_total_price - $this_room_owner_profits - $this_receiver_profit - $this_producer_profit;//平台收益