6
0
Fork 0

调整余额转入转出备注

release
vine_liutk 2022-02-10 13:31:32 +08:00
parent a52f1b1df1
commit 578c09b1d3
1 changed files with 2 additions and 2 deletions

View File

@ -356,10 +356,10 @@ class WalletController extends Controller
try {
DB::beginTransaction();
//转出对象
$log = $balanceService->changeBalance($user, -Arr::get($input, 'amount', 0), BalanceLog::ACTION_TRANSFER_OUT, '转出-'.$toUser->phone);
$log = $balanceService->changeBalance($user, -Arr::get($input, 'amount', 0), BalanceLog::ACTION_TRANSFER_OUT, '转出-'.$toUser->phone.($toUser->userInfo?->nickname ? '【'.$toUser->userInfo->nickname.'】' : ''));
//转入对象
$balanceService->changeBalance($toUser, Arr::get($input, 'amount', 0), BalanceLog::ACTION_TRANSFER_IN, $user->phone.'-转入', $log);
$balanceService->changeBalance($toUser, Arr::get($input, 'amount', 0), BalanceLog::ACTION_TRANSFER_IN, $user->phone.($user->userInfo?->nickname ? '【'.$user->userInfo->nickname.'】' : '').'-转入', $log);
DB::commit();
} catch (Throwable $th) {