Kirin 2 years ago
parent
commit
42ebe85f14
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/user/UserRecharge.php

+ 2 - 2
app/models/user/UserRecharge.php

@@ -162,8 +162,8 @@ class UserRecharge extends BaseModel
 
             $commission_gf = bcmul($price, bcdiv(sys_config('commission_gf'), 100, 3), 2);
             $commission_consumer = bcmul($price, bcdiv(sys_config('commission_consumer'), 100, 3), 2);
-            $real_get = bcsub($price, $commission_gf);
-            $real_get = bcsub($real_get, $commission_consumer);
+            $real_get = bcsub($price, $commission_gf, 2);
+            $real_get = bcsub($real_get, $commission_consumer, 2);
             $res1 = User::bcInc($uid, 'now_money', $real_get, 'uid');
             $res3 = User::bcDec($uid, 'brokerage_price', $price, 'uid');
             $res2 = UserBill::income('用户佣金转入余额', $uid, 'now_money', 'recharge', $real_get, 0, $user['now_money'], '成功转入余额' . floatval($real_get) . '元');