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

37 lines
1.7 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']);
Router::post('/refund-apply', [PaymentController::class, 'refundApply']);
Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']);
Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']);
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']);
2 years ago
});
1 year ago
1 year ago
Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);