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