master
ljl 1 year ago
parent 081d96da32
commit 65e923d6cc

@ -45,7 +45,8 @@ class MineCommand extends HyperfCommand
public function handle(): void 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; return;
$this->rsyncUser('4673f922e30cfd2efeeb992ff6a32ece', '202308070000001', 'ELF1990'); $this->rsyncUser('4673f922e30cfd2efeeb992ff6a32ece', '202308070000001', 'ELF1990');
$this->rsyncUser('247eda1b7de0c76603123c477f2072fa', '202308070000001', 'RLX1990'); $this->rsyncUser('247eda1b7de0c76603123c477f2072fa', '202308070000001', 'RLX1990');

@ -201,4 +201,8 @@ class NotifyController extends AbstractController
Log::info('notifyToOut response:' . $result, [], 'platform'); Log::info('notifyToOut response:' . $result, [], 'platform');
return $result; return $result;
} }
public function testNotify(RequestInterface $request) {
return $this->success(['params' => $request->all()])
}
} }

@ -29,6 +29,7 @@ Router::addGroup('/notify',function () {
Router::addRoute(['GET', 'POST'], '/bind-card/{token}', [NotifyController::class, 'bindCard']); Router::addRoute(['GET', 'POST'], '/bind-card/{token}', [NotifyController::class, 'bindCard']);
Router::addRoute(['GET', 'POST'], '/payment/{token}', [NotifyController::class, 'payment']); Router::addRoute(['GET', 'POST'], '/payment/{token}', [NotifyController::class, 'payment']);
Router::addRoute(['GET', 'POST'], '/refund/{token}', [NotifyController::class, 'refund']); 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']); Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);

Loading…
Cancel
Save