efps-version
ljl 2 years ago
parent e822b26c3b
commit 45b3b99e1a

@ -2,6 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
use App\Controller\Payment\NotifyController;
use App\Controller\Payment\PageController; use App\Controller\Payment\PageController;
use App\Controller\Payment\PayController; use App\Controller\Payment\PayController;
use Hyperf\HttpServer\Router\Router; use Hyperf\HttpServer\Router\Router;
@ -13,5 +14,5 @@ Router::get('/favicon.ico', function () {
Router::addGroup('/payment',function () { Router::addGroup('/payment',function () {
Router::post('/jsapi', [PayController::class, 'jsapi']); Router::post('/jsapi', [PayController::class, 'jsapi']);
Router::get('/page', [PageController::class, 'index']); Router::get('/page', [PageController::class, 'index']);
Router::post('/notify', [PayController::class, 'index']); Router::addRoute(['GET', 'POST'], '/notify', [NotifyController::class, 'index']);
}); });

Loading…
Cancel
Save