|
@@ -2211,8 +2211,8 @@ class StoreOrder extends BaseModel
|
|
|
$sp_userInfo = User::find($userInfo['spread_uid']);
|
|
|
if($sp_userInfo && $sp_userInfo['level']>0)
|
|
|
{
|
|
|
- $sp_brokeragePrice = bcdiv(bcmul($order['total_price'],sys_config('recommend'), 2), 100, 2);
|
|
|
- $sp_brokeragePrice1 = bcdiv(bcmul($order['total_price'],sys_config('recommend_balance'), 2), 100, 2);
|
|
|
+ $sp_brokeragePrice = bcdiv(bcmul($order['total_price'],sys_config('recommend',11), 2), 100, 2);
|
|
|
+ $sp_brokeragePrice1 = bcdiv(bcmul($order['total_price'],sys_config('recommend_balance',11), 2), 100, 2);
|
|
|
$sum = bcadd($sp_brokeragePrice,$sp_brokeragePrice1,2);
|
|
|
if(bcsub($sp_userInfo['integral'],$sum,2)>0) {
|
|
|
$balance = bcadd($sp_userInfo['brokerage_price'], $sp_brokeragePrice, 2);
|