master
elf 1 year ago
parent 7364e310c3
commit 29748ac9fb

@ -42,9 +42,7 @@ class MineCommand extends HyperfCommand
public function handle(): void public function handle(): void
{ {
$merchant = $this->createMerchant(); $this->register('RLX1990');
$app = $this->createApp($merchant, '艺小吧');
var_dump($app->toArray());
} }
protected function generateToken() { protected function generateToken() {

@ -25,9 +25,9 @@ Router::addGroup('/payment',function () {
}, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]); }, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]);
Router::addGroup('/notify',function () { Router::addGroup('/notify',function () {
Router::addRoute(['GET', 'POST'], '/register', [NotifyController::class, 'register']); Router::addRoute(['GET', 'POST'], '/register{token}', [NotifyController::class, 'register']);
Router::addRoute(['GET', 'POST'], '/bind-card', [NotifyController::class, 'bindCard']); Router::addRoute(['GET', 'POST'], '/bind-card{token}', [NotifyController::class, 'bindCard']);
Router::addRoute(['GET', 'POST'], '/payment', [NotifyController::class, 'payment']); Router::addRoute(['GET', 'POST'], '/payment{token}', [NotifyController::class, 'payment']);
Router::addRoute(['GET', 'POST'], '/refund', [NotifyController::class, 'refund']); Router::addRoute(['GET', 'POST'], '/refund{token}', [NotifyController::class, 'refund']);
}); });

Loading…
Cancel
Save