|
|
@ -102,32 +102,30 @@ class RechargeController extends AbstractController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success([
|
|
|
|
return $this->success([
|
|
|
|
'nextStep' => $nextStep,
|
|
|
|
'nextStep' => $nextStep,
|
|
|
|
'outMemberId' => $memberId,
|
|
|
|
'outMemberId' => $prePayLog->out_member_id,
|
|
|
|
'bizData' => $bizData
|
|
|
|
'bizData' => $bizData
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function confirmBindCard(RequestInterface $request) {
|
|
|
|
public function confirmBindCard(RequestInterface $request) {
|
|
|
|
[$app, $prePayLog] = $this->checkToken($request->input('stoken', ''));
|
|
|
|
[$app, $prePayLog] = $this->checkToken($request->input('stoken', ''));
|
|
|
|
$outMemberId = $request->input('outMemberId');
|
|
|
|
|
|
|
|
$smsNo = $request->input('smsNo');
|
|
|
|
$smsNo = $request->input('smsNo');
|
|
|
|
$smsCode = $request->input('smsCode');
|
|
|
|
$smsCode = $request->input('smsCode');
|
|
|
|
$bizData = $this->paymentService->bindCardConfirm($this->buildComfirmBindCardParams($outMemberId, $smsNo, $smsCode, $app));
|
|
|
|
$bizData = $this->paymentService->bindCardConfirm($this->buildComfirmBindCardParams($prePayLog->out_member_id, $smsNo, $smsCode, $app));
|
|
|
|
return $this->success([
|
|
|
|
return $this->success([
|
|
|
|
'outMemberId' => $outMemberId,
|
|
|
|
'outMemberId' => $prePayLog->out_member_id,
|
|
|
|
'bizData' => $bizData
|
|
|
|
'bizData' => $bizData
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function confirmPay(RequestInterface $request) {
|
|
|
|
public function confirmPay(RequestInterface $request) {
|
|
|
|
[$app, $prePayLog] = $this->checkToken($request->input('stoken', ''));
|
|
|
|
[$app, $prePayLog] = $this->checkToken($request->input('stoken', ''));
|
|
|
|
$outMemberId = $request->input('outMemberId');
|
|
|
|
|
|
|
|
$token = $request->input('token');
|
|
|
|
$token = $request->input('token');
|
|
|
|
$protocol = $request->input('protocol');
|
|
|
|
$protocol = $request->input('protocol');
|
|
|
|
$smsCode = $request->input('smsCode');
|
|
|
|
$smsCode = $request->input('smsCode');
|
|
|
|
$bizData = $this->paymentService->protocolPayConfirm($this->buildConfirmPayParams($token, $protocol, $smsCode, $app));
|
|
|
|
$bizData = $this->paymentService->protocolPayConfirm($this->buildConfirmPayParams($token, $protocol, $smsCode, $app));
|
|
|
|
return $this->success([
|
|
|
|
return $this->success([
|
|
|
|
'outMemberId' => $outMemberId,
|
|
|
|
'outMemberId' => $prePayLog->out_member_id,
|
|
|
|
'bizData' => ['outTradeNo' => $bizData['outTradeNo']]
|
|
|
|
'bizData' => ['outTradeNo' => $bizData['outTradeNo']]
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|