|
|
@ -4,6 +4,7 @@ declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
|
|
use App\Controller\Payment\NotifyController;
|
|
|
|
use App\Controller\Payment\NotifyController;
|
|
|
|
use App\Controller\Payment\PayController;
|
|
|
|
use App\Controller\Payment\PayController;
|
|
|
|
|
|
|
|
use App\Controller\Payment\ReturnController;
|
|
|
|
use Hyperf\HttpServer\Router\Router;
|
|
|
|
use Hyperf\HttpServer\Router\Router;
|
|
|
|
|
|
|
|
|
|
|
|
Router::get('/favicon.ico', function () {
|
|
|
|
Router::get('/favicon.ico', function () {
|
|
|
@ -31,3 +32,6 @@ Router::addGroup('/notify',function () {
|
|
|
|
Router::addRoute(['GET', 'POST'], '/refund/{token}', [NotifyController::class, 'refund']);
|
|
|
|
Router::addRoute(['GET', 'POST'], '/refund/{token}', [NotifyController::class, 'refund']);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|