From 29748ac9fb9c215a9ffb71eae7f1ff7f5307924d Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 7 Aug 2023 23:00:12 +0800 Subject: [PATCH] yh --- app/Command/MineCommand.php | 4 +--- config/routes.php | 8 ++++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index 286222a..123d55e 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -42,9 +42,7 @@ class MineCommand extends HyperfCommand public function handle(): void { - $merchant = $this->createMerchant(); - $app = $this->createApp($merchant, '艺小吧'); - var_dump($app->toArray()); + $this->register('RLX1990'); } protected function generateToken() { diff --git a/config/routes.php b/config/routes.php index 92e3d9a..6f68777 100644 --- a/config/routes.php +++ b/config/routes.php @@ -25,9 +25,9 @@ Router::addGroup('/payment',function () { }, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]); Router::addGroup('/notify',function () { - Router::addRoute(['GET', 'POST'], '/register', [NotifyController::class, 'register']); - Router::addRoute(['GET', 'POST'], '/bind-card', [NotifyController::class, 'bindCard']); - Router::addRoute(['GET', 'POST'], '/payment', [NotifyController::class, 'payment']); - Router::addRoute(['GET', 'POST'], '/refund', [NotifyController::class, 'refund']); + Router::addRoute(['GET', 'POST'], '/register{token}', [NotifyController::class, 'register']); + Router::addRoute(['GET', 'POST'], '/bind-card{token}', [NotifyController::class, 'bindCard']); + Router::addRoute(['GET', 'POST'], '/payment{token}', [NotifyController::class, 'payment']); + Router::addRoute(['GET', 'POST'], '/refund{token}', [NotifyController::class, 'refund']); });