|
|
@ -61,7 +61,7 @@ class WithdrawCommand extends HyperfCommand
|
|
|
|
|
|
|
|
|
|
|
|
$balance = $userService->getBalance($user->member_id);
|
|
|
|
$balance = $userService->getBalance($user->member_id);
|
|
|
|
|
|
|
|
|
|
|
|
echo 'before balance' . $balance . PHP_EOL;
|
|
|
|
echo 'before balance: ' . $balance . PHP_EOL;
|
|
|
|
|
|
|
|
|
|
|
|
$bankCard = BankCard::where('user_id', $user->user_id)->first();
|
|
|
|
$bankCard = BankCard::where('user_id', $user->user_id)->first();
|
|
|
|
|
|
|
|
|
|
|
@ -70,15 +70,16 @@ class WithdrawCommand extends HyperfCommand
|
|
|
|
'withdrawType' => 'entrust',
|
|
|
|
'withdrawType' => 'entrust',
|
|
|
|
'agreementNo' => $bankCard->agreement_no,
|
|
|
|
'agreementNo' => $bankCard->agreement_no,
|
|
|
|
'outWithdrawNo' => StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_ACCOUNT_WITHDRAW),
|
|
|
|
'outWithdrawNo' => StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_ACCOUNT_WITHDRAW),
|
|
|
|
'amount' => $balance
|
|
|
|
'amount' => $balance,
|
|
|
|
|
|
|
|
'notifyUrl' => 'http://124.223.222.61:9701/notify/test-notify'
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
|
|
$url = $paymentService->withdraw($requestLog->getData(), $requestLog->app, $requestLog->request_token);
|
|
|
|
$url = $paymentService->withdraw($requestLog->getData(), $requestLog->app, $requestLog->request_token);
|
|
|
|
|
|
|
|
|
|
|
|
echo 'result' . $url . PHP_EOL;
|
|
|
|
echo 'result: ' . $url . PHP_EOL;
|
|
|
|
|
|
|
|
|
|
|
|
$balance = $userService->getBalance($user->member_id);
|
|
|
|
$balance = $userService->getBalance($user->member_id);
|
|
|
|
echo 'after balance' . $balance . PHP_EOL;
|
|
|
|
echo 'after balance: ' . $balance . PHP_EOL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private function createRequestLog($data) {
|
|
|
|
private function createRequestLog($data) {
|
|
|
|