|
|
|
@ -147,14 +147,15 @@ class AccountController extends AbstractController
|
|
|
|
|
$userInfo = $this->checkUser($request);
|
|
|
|
|
$userId = $this->resetUserId($userInfo['userId']);
|
|
|
|
|
$bankCard = BankCard::where('user_id', $userId)->first();
|
|
|
|
|
$outOrderNo = StringHelper::generateOrderNo(StringHelper::ORDER_NO_TYPE_ACCOUNT_PAY);
|
|
|
|
|
$requestLog = $this->createRequestLog([
|
|
|
|
|
'userId' => $userId,
|
|
|
|
|
'goodsName' => '充值',
|
|
|
|
|
'agreementNo' => $bankCard->agreement_no,
|
|
|
|
|
'notifyUrl' => 'http://www.baidu.com',
|
|
|
|
|
'returnUrl' => 'http://www.baidu.com',
|
|
|
|
|
'notifyUrl' => '',
|
|
|
|
|
'returnUrl' => 'http://124.223.222.61:9701/account.html',
|
|
|
|
|
'amount' => intval($request->input('amount') * 100),
|
|
|
|
|
'outOrderNo' => time() . rand(1000, 9999),
|
|
|
|
|
'outOrderNo' => $outOrderNo,
|
|
|
|
|
'validDate' => date('Y-m-d', time() + 12*3600),
|
|
|
|
|
'marketInfo' => [
|
|
|
|
|
'amount' => 0,
|
|
|
|
@ -164,13 +165,13 @@ class AccountController extends AbstractController
|
|
|
|
|
[
|
|
|
|
|
'splitUserId' => 'RLX1990',
|
|
|
|
|
'sellerFlag' => 1,
|
|
|
|
|
'splitAmount' => 100,
|
|
|
|
|
'splitAmount' => 1,
|
|
|
|
|
'subOutOrderNo' => time() . rand(1000, 9999),
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
$acsNo = $this->paymentService->transferPay($requestLog->getData(), $requestLog->app, $requestLog->request_token);
|
|
|
|
|
return $this->success(['acsNo' => $acsNo]);
|
|
|
|
|
return $this->success(['acsNo' => $acsNo, 'outOrderNo' => $outOrderNo]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getUserInfo(RequestInterface $request)
|
|
|
|
|