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