|
|
@@ -546,7 +546,7 @@ class UserBrokerageServices extends BaseServices
|
|
|
$actualAmount = bcsub((string)$money, $transferFee, 2);
|
|
|
|
|
|
// 使用事务处理
|
|
|
- return $this->transaction(function () use ($uid, $toUid, $money, $transferFee, $actualAmount, $fromUser, $toUser, $fromBrokerage) {
|
|
|
+ return $this->transaction(function () use ($uid, $toUid, $money, $transferFee, $actualAmount, $fromUser, $toUser, $fromBrokerage, $userService) {
|
|
|
// 扣除转账方佣金
|
|
|
$newFromBrokerage = bcsub((string)$fromBrokerage, $money, 2);
|
|
|
$userService->update($uid, ['brokerage_price' => $newFromBrokerage], 'uid');
|