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