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

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

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

Loading…
Cancel
Save