elf 1 year ago
parent 63cd600172
commit 6c2a3e0c6f

@ -87,24 +87,31 @@ class PaymentController extends AbstractController
return $this->success(['acsNo' => $acsNo]); return $this->success(['acsNo' => $acsNo]);
} }
public function confirmPay(RequestInterface $request)
{
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
$data = $this->paymentService->confirmPay($data, $app, $token);
return $this->success($data);
}
public function refundApply(RequestInterface $request) public function refundApply(RequestInterface $request)
{ {
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class); [$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
$data = $this->paymentService->refundApply($app, $data); $data = $this->paymentService->refundApply($data, $app);
return $this->success($data); return $this->success($data);
} }
public function refundConfirm(RequestInterface $request) public function refundConfirm(RequestInterface $request)
{ {
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class); [$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
$this->paymentService->refundConfirm($app, $data, $token); $this->paymentService->refundConfirm($data, $app, $token);
return $this->success(); return $this->success();
} }
public function refundCancel(RequestInterface $request) public function refundCancel(RequestInterface $request)
{ {
[$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class); [$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class);
$data = $this->paymentService->refundApply($app, $data); $data = $this->paymentService->refundApply($data, $app);
return $this->success($data); return $this->success($data);
} }

@ -19,6 +19,7 @@ Router::addGroup('/payment',function () {
Router::post('/pwd-forget', [PaymentController::class, 'pwdForget']); Router::post('/pwd-forget', [PaymentController::class, 'pwdForget']);
Router::post('/pwd-modify', [PaymentController::class, 'pwdModify']); Router::post('/pwd-modify', [PaymentController::class, 'pwdModify']);
Router::post('/payment', [PaymentController::class, 'payment']); Router::post('/payment', [PaymentController::class, 'payment']);
Router::post('/confirm-pay', [PaymentController::class, 'payment']);
Router::post('/transfer-pay', [PaymentController::class, 'transferPay']); Router::post('/transfer-pay', [PaymentController::class, 'transferPay']);
Router::post('/query-bind-cards', [PaymentController::class, 'queryBindCards']); Router::post('/query-bind-cards', [PaymentController::class, 'queryBindCards']);
Router::post('/query-user', [PaymentController::class, 'queryUser']); Router::post('/query-user', [PaymentController::class, 'queryUser']);

Loading…
Cancel
Save