efps-version
elf 1 year ago
parent 32ae81a659
commit 162f160dab

@ -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']]
]);
}

@ -80,13 +80,13 @@
stoken: '',
smsCode: '',
smsNo: '',
memberId: ''
outMemberId: ''
},
payConfirmVisible: false,
payConfirmForm: {
stoken: '',
smsCode: '',
memberId: '',
outMemberId: '',
token: '',
protocol: ''
},
@ -123,12 +123,12 @@
}
if (result.data.nextStep == 'confirm-bind') {
this.bindConfirmVisible = true;
this.bindConfirmForm.memberId = result.data.memberId;
this.bindConfirmForm.outMemberId = result.data.outMemberId;
this.bindConfirmForm.smsNo = result.data.bizData.smsNo;
console.log(this.bindConfirmForm)
} else if (result.data.nextStep == 'confirm-pay') {
this.payConfirmVisible = true;
this.payConfirmForm.memberId = result.data.memberId;
this.payConfirmForm.outMemberId = result.data.outMemberId;
this.payConfirmForm.protocol = result.data.bizData.protocol;
this.payConfirmForm.token = result.data.bizData.token;
console.log(this.payConfirmForm)

Loading…
Cancel
Save