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

42 lines
1.9 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\Recharge\RechargeController;
2 years ago
use Hyperf\HttpServer\Router\Router;
Router::get('/favicon.ico', function () {
return 'sdfsd';
});
Router::addGroup('/payment',function () {
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']);
Router::post('/bind-card-confirm', [PayController::class, 'bindCardConfirm']);
Router::post('/un-bind-card', [PayController::class, 'unBindCard']);
Router::post('/protocol-pay-pre-request', [PayController::class, 'protocolPayPreRequest']);
Router::post('/protocol-pay-confirm', [PayController::class, 'protocolPayConfirm']);
1 year ago
Router::post('/refund-query', [PayController::class, 'refundQuery']);
1 year ago
Router::post('/payment-query', [PayController::class, 'paymentQuery']);
1 year ago
Router::post('/query', [PayController::class, 'query']);
1 year ago
Router::post('/pay', [PayController::class, 'payment']);
1 year ago
}, ['middleware' => [\App\Middleware\RequestLogMiddleware::class]]);
1 year ago
Router::addGroup('/recharge',function () {
Router::post('/recharge', [RechargeController::class, 'recharge']);
Router::post('/confirm-bind-card', [RechargeController::class, 'confirmBindCard']);
Router::post('/confirm-pay', [RechargeController::class, 'confirmPay']);
Router::post('/orders', [RechargeController::class, 'orders']);
Router::post('/login', [RechargeController::class, 'login']);
1 year ago
Router::post('/get-member-info', [RechargeController::class, 'getMemberInfo']);
1 year ago
});
1 year ago
Router::addGroup('/notify',function () {
Router::addRoute(['GET', 'POST'], '/payment', [NotifyController::class, 'payment']);
Router::addRoute(['GET', 'POST'], '/refund', [NotifyController::class, 'refund']);
2 years ago
});
1 year ago