From 45b3b99e1a131fd92875063abb9759556d1749cb Mon Sep 17 00:00:00 2001 From: ljl Date: Fri, 28 Apr 2023 13:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.php b/config/routes.php index 9175e65..c80d350 100644 --- a/config/routes.php +++ b/config/routes.php @@ -2,6 +2,7 @@ declare(strict_types=1); +use App\Controller\Payment\NotifyController; use App\Controller\Payment\PageController; use App\Controller\Payment\PayController; use Hyperf\HttpServer\Router\Router; @@ -13,5 +14,5 @@ Router::get('/favicon.ico', function () { Router::addGroup('/payment',function () { Router::post('/jsapi', [PayController::class, 'jsapi']); Router::get('/page', [PageController::class, 'index']); - Router::post('/notify', [PayController::class, 'index']); + Router::addRoute(['GET', 'POST'], '/notify', [NotifyController::class, 'index']); });