修改收益计算比例
This commit is contained in:
@@ -26,8 +26,8 @@ class Gift extends Model
|
|||||||
// $rate = 0.2;
|
// $rate = 0.2;
|
||||||
$rate = 0.1;
|
$rate = 0.1;
|
||||||
$this->room_owner_rate = $rate;
|
$this->room_owner_rate = $rate;
|
||||||
$this->user_rate = 0.6;
|
$this->user_rate = 0.6;
|
||||||
$this->guild_user_rate = 0.63;
|
$this->guild_user_rate = 0.63;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -827,15 +827,11 @@ class Gift extends Model
|
|||||||
}else{
|
}else{
|
||||||
$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;//平台收益
|
||||||
|
|||||||
Reference in New Issue
Block a user