Kirin 1 vuosi sitten
vanhempi
commit
ddba539482
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      app/services/user/UserBillServices.php

+ 1 - 1
app/services/user/UserBillServices.php

@@ -714,7 +714,7 @@ class UserBillServices extends BaseServices
             $balance = bcsub((string)$user['integral'], (string)$num, 2) ?? 0;
             $real_get = bcdiv(bcmul(bcsub('100', $commission, 2), (string)$num, 2), '100', 2);
             $balance2 = bcadd((string)$to_user['integral'], (string)$real_get, 2);
-            if ($user['is_shop']) $balance = bcadd((string)$to_user['now_money'], (string)$real_get, 2);
+            if ($user['is_shop']) $balance2 = bcadd((string)$to_user['now_money'], (string)$real_get, 2);
             if (!$userService->update($user['uid'], ['integral' => $balance], 'uid')) {
                 throw new ValidateException('修改用户信息失败');
             }