|
@@ -135,8 +135,9 @@ class DividendsRecord extends BaseModel
|
|
|
$dividends = bcadd($group_level_dividends, $dividends, 2);
|
|
$dividends = bcadd($group_level_dividends, $dividends, 2);
|
|
|
}
|
|
}
|
|
|
@file_put_contents('quanju.txt', $dividends . "-分红比例\r\n", 8);
|
|
@file_put_contents('quanju.txt', $dividends . "-分红比例\r\n", 8);
|
|
|
|
|
+ @file_put_contents('quanju.txt', $pool . "-分红奖池\r\n", 8);
|
|
|
if ($dividends > 0){
|
|
if ($dividends > 0){
|
|
|
- $brokerage = bcsub($pool, $dividends, 2);
|
|
|
|
|
|
|
+ $brokerage = bcmul($pool, bcdiv($dividends, 100, 2), 2);
|
|
|
|
|
|
|
|
$id = self::income('全网分红', $user['uid'], 'brokerage_price', $brokerage, '订单推荐佣金');
|
|
$id = self::income('全网分红', $user['uid'], 'brokerage_price', $brokerage, '订单推荐佣金');
|
|
|
$blance = bcadd($user['brokerage_price'], $brokerage, 2);
|
|
$blance = bcadd($user['brokerage_price'], $brokerage, 2);
|