elf 1 year ago
parent 4194e37197
commit f833716f17

@ -152,6 +152,10 @@ class MineCommand extends HyperfCommand
// 'notifyUrl' => 'http://124.223.222.61:9501/notify/test-notify', // 'notifyUrl' => 'http://124.223.222.61:9501/notify/test-notify',
// 'returnUrl' => 'https://www.baidu.com', // 'returnUrl' => 'https://www.baidu.com',
// ]; // ];
$data = [
'userId' => 'ELF1990',
'outApplyNo' => '16934203547527',
];
$params = [ $params = [
'app_id' => $app->app_id, 'app_id' => $app->app_id,
'nonce_str' => StringHelper::getRandomString(16), 'nonce_str' => StringHelper::getRandomString(16),

@ -171,4 +171,11 @@ class PaymentController extends AbstractController
$data = $this->paymentService->withdrawApply($data, $app); $data = $this->paymentService->withdrawApply($data, $app);
return $this->success($data); 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);
}
} }

@ -28,6 +28,7 @@ Router::addGroup('/payment',function () {
Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']); Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']);
Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']); Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']);
Router::post('/withdraw-apply', [PaymentController::class, 'withdrawApply']); Router::post('/withdraw-apply', [PaymentController::class, 'withdrawApply']);
Router::post('/withdraw-apply-query', [PaymentController::class, 'withdrawApplyQuery']);
Router::post('/withdraw', [PaymentController::class, 'withdraw']); Router::post('/withdraw', [PaymentController::class, 'withdraw']);
}, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]); }, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]);

Loading…
Cancel
Save