From f833716f1741c5400f0a63e07ea3d14c937d31fb Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Thu, 31 Aug 2023 02:39:13 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 4 ++++ app/Controller/Payment/PaymentController.php | 7 +++++++ config/routes.php | 1 + 3 files changed, 12 insertions(+) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 851e0b1..1644dff 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -152,6 +152,10 @@ class MineCommand extends HyperfCommand // 'notifyUrl' => 'http://124.223.222.61:9501/notify/test-notify', // 'returnUrl' => 'https://www.baidu.com', // ]; + $data = [ + 'userId' => 'ELF1990', + 'outApplyNo' => '16934203547527', + ]; $params = [ 'app_id' => $app->app_id, 'nonce_str' => StringHelper::getRandomString(16), diff --git a/app/Controller/Payment/PaymentController.php b/app/Controller/Payment/PaymentController.php index 550fe96..43abe63 100644 --- a/app/Controller/Payment/PaymentController.php +++ b/app/Controller/Payment/PaymentController.php @@ -171,4 +171,11 @@ class PaymentController extends AbstractController $data = $this->paymentService->withdrawApply($data, $app); return $this->success($data); } + + public function withdrawApplyQuery(RequestInterface $request) + { + [$app, $data, $token] = $this->parseReqest($request, UnbindCardRequest::class); + $data = $this->paymentService->withdrawApplyQuery($data, $app); + return $this->success($data); + } } diff --git a/config/routes.php b/config/routes.php index 628d1fd..eab8f42 100644 --- a/config/routes.php +++ b/config/routes.php @@ -28,6 +28,7 @@ Router::addGroup('/payment',function () { Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']); Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']); Router::post('/withdraw-apply', [PaymentController::class, 'withdrawApply']); + Router::post('/withdraw-apply-query', [PaymentController::class, 'withdrawApplyQuery']); Router::post('/withdraw', [PaymentController::class, 'withdraw']); }, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]);