diff --git a/app/Command/MineCommand.php b/app/Command/MineCommand.php index ef8e73e..62be7d3 100644 --- a/app/Command/MineCommand.php +++ b/app/Command/MineCommand.php @@ -45,7 +45,8 @@ class MineCommand extends HyperfCommand public function handle(): void { - $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_register', $this->getApp(), ['userId' => '30684']); + // $this->notify('http://ceshi-shop.hkcpex.com/index.php/pay/notify/baofu_f_register', $this->getApp(), ['userId' => '30684']); + $this->notify('http://124.223.222.61:9501/notify/test-notify', $this->getApp(), ['userId' => '30684']); return; $this->rsyncUser('4673f922e30cfd2efeeb992ff6a32ece', '202308070000001', 'ELF1990'); $this->rsyncUser('247eda1b7de0c76603123c477f2072fa', '202308070000001', 'RLX1990'); diff --git a/app/Controller/Payment/NotifyController.php b/app/Controller/Payment/NotifyController.php index f60af4e..c8dbc12 100644 --- a/app/Controller/Payment/NotifyController.php +++ b/app/Controller/Payment/NotifyController.php @@ -201,4 +201,8 @@ class NotifyController extends AbstractController Log::info('notifyToOut response:' . $result, [], 'platform'); return $result; } + + public function testNotify(RequestInterface $request) { + return $this->success(['params' => $request->all()]) + } } diff --git a/config/routes.php b/config/routes.php index 7660421..09f27df 100644 --- a/config/routes.php +++ b/config/routes.php @@ -29,6 +29,7 @@ Router::addGroup('/notify',function () { 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']); + Router::addRoute(['POST'], '/test-notify', [NotifyController::class, 'testNotify']); }); Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);