You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
payment/config/routes.php

52 lines
3.0 KiB
PHTML

2 years ago
<?php
declare(strict_types=1);
2 years ago
use App\Controller\Payment\NotifyController;
1 year ago
use App\Controller\Payment\PaymentController;
1 year ago
use App\Controller\Payment\ReturnController;
2 years ago
use Hyperf\HttpServer\Router\Router;
Router::get('/favicon.ico', function () {
1 year ago
return 'abc';
2 years ago
});
Router::addGroup('/payment',function () {
1 year ago
Router::post('/company-register', [PaymentController::class, 'companyRegister']);
Router::post('/register', [PaymentController::class, 'register']);
Router::post('/bind-card', [PaymentController::class, 'bindCard']);
Router::post('/unbind-card', [PaymentController::class, 'unbindCard']);
Router::post('/pwd-forget', [PaymentController::class, 'pwdForget']);
Router::post('/pwd-modify', [PaymentController::class, 'pwdModify']);
Router::post('/payment', [PaymentController::class, 'payment']);
1 year ago
Router::post('/confirm-pay', [PaymentController::class, 'confirmPay']);
1 year ago
Router::post('/query-order', [PaymentController::class, 'queryOrder']);
1 year ago
Router::post('/transfer-pay', [PaymentController::class, 'transferPay']);
1 year ago
Router::post('/query-bind-cards', [PaymentController::class, 'queryBindCards']);
1 year ago
Router::post('/query-user', [PaymentController::class, 'queryUser']);
1 year ago
Router::post('/refund-apply', [PaymentController::class, 'refundApply']);
Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']);
Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']);
1 year ago
Router::post('/withdraw-apply', [PaymentController::class, 'withdrawApply']);
1 year ago
Router::post('/withdraw-apply-query', [PaymentController::class, 'withdrawApplyQuery']);
1 year ago
Router::post('/withdraw', [PaymentController::class, 'withdraw']);
1 year ago
Router::post('/unbind-withdraw-entrust', [PaymentController::class, 'unbindWithdrawEntrust']);
Router::post('/sign-withdraw-entrust', [PaymentController::class, 'signWithdrawEntrust']);
Router::post('/query-sign-entrust', [PaymentController::class, 'querySignEntrust']);
1 year ago
}, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]);
1 year ago
1 year ago
Router::addGroup('/notify',function () {
1 year ago
Router::addRoute(['GET', 'POST'], '/register/{token}', [NotifyController::class, 'register']);
Router::addRoute(['GET', 'POST'], '/bind-card/{token}', [NotifyController::class, 'bindCard']);
Router::addRoute(['GET', 'POST'], '/payment/{token}', [NotifyController::class, 'payment']);
Router::addRoute(['GET', 'POST'], '/refund/{token}', [NotifyController::class, 'refund']);
1 year ago
Router::addRoute(['GET', 'POST'], '/withdraw/{token}', [NotifyController::class, 'withdraw']);
1 year ago
Router::addRoute(['GET', 'POST'], '/transfer-withdraw', [NotifyController::class, 'transferWithdraw']);
1 year ago
Router::addRoute(['POST'], '/test-notify', [NotifyController::class, 'testNotify']);
1 year ago
Router::addRoute(['GET', 'POST'], '/confirm-assure-portfolio-pay/{token}', [NotifyController::class, 'confirmAssurePortfolioPay']);
2 years ago
});
1 year ago
1 year ago
Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);