|
|
|
@ -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']);
|
|
|
|
|
});
|
|
|
|
|