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

38 lines
1.7 KiB
PHTML

2 years ago
<?php
declare(strict_types=1);
2 years ago
use App\Controller\Payment\NotifyController;
2 years ago
use App\Controller\Payment\PayController;
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', [PayController::class, 'companyRegister']);
2 years ago
Router::post('/register', [PayController::class, 'register']);
1 year ago
Router::post('/refund', [PayController::class, 'refund']);
2 years ago
Router::post('/bind-card', [PayController::class, 'bindCard']);
1 year ago
Router::post('/unbind-card', [PayController::class, 'unbindCard']);
Router::post('/pwdForget', [PayController::class, 'pwdForget']);
Router::post('/pwdModify', [PayController::class, 'pwdModify']);
Router::post('/payment', [PayController::class, 'payment']);
Router::post('/refund-apply', [PayController::class, 'refundApply']);
Router::post('/refund-confirm', [PayController::class, 'refundConfirm']);
Router::post('/refund-cancel', [PayController::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']);