zxhxx 3 years ago
parent
commit
8fba28738e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/store/StoreOrder.php

+ 2 - 2
app/models/store/StoreOrder.php

@@ -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);