|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
use App\Controller\Payment\NotifyController;
|
|
|
|
|
use App\Controller\Payment\PayController;
|
|
|
|
|
use App\Controller\Payment\PaymentController;
|
|
|
|
|
use App\Controller\Payment\ReturnController;
|
|
|
|
|
use Hyperf\HttpServer\Router\Router;
|
|
|
|
|
|
|
|
|
@ -12,16 +12,16 @@ Router::get('/favicon.ico', function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Router::addGroup('/payment',function () {
|
|
|
|
|
Router::post('/company-register', [PayController::class, 'companyRegister']);
|
|
|
|
|
Router::post('/register', [PayController::class, 'register']);
|
|
|
|
|
Router::post('/bind-card', [PayController::class, 'bindCard']);
|
|
|
|
|
Router::post('/unbind-card', [PayController::class, 'unbindCard']);
|
|
|
|
|
Router::post('/pwd-forget', [PayController::class, 'pwdForget']);
|
|
|
|
|
Router::post('/pwd-modify', [PayController::class, 'pwdModify']);
|
|
|
|
|
Router::post('/payment', [PayController::class, 'payment']);
|
|
|
|
|
Router::post('/refund-apply', [PayController::class, 'refundApply']);
|
|
|
|
|
Router::post('/refund-confirm', [PayController::class, 'refundConfirm']);
|
|
|
|
|
Router::post('/refund-cancel', [PayController::class, 'refundCancel']);
|
|
|
|
|
Router::post('/company-register', [PaymentController::class, 'companyRegister']);
|
|
|
|
|
Router::post('/register', [PaymentController::class, 'register']);
|
|
|
|
|
Router::post('/bind-card', [PaymentController::class, 'bindCard']);
|
|
|
|
|
Router::post('/unbind-card', [PaymentController::class, 'unbindCard']);
|
|
|
|
|
Router::post('/pwd-forget', [PaymentController::class, 'pwdForget']);
|
|
|
|
|
Router::post('/pwd-modify', [PaymentController::class, 'pwdModify']);
|
|
|
|
|
Router::post('/payment', [PaymentController::class, 'payment']);
|
|
|
|
|
Router::post('/refund-apply', [PaymentController::class, 'refundApply']);
|
|
|
|
|
Router::post('/refund-confirm', [PaymentController::class, 'refundConfirm']);
|
|
|
|
|
Router::post('/refund-cancel', [PaymentController::class, 'refundCancel']);
|
|
|
|
|
}, ['middleware' => [\App\Middleware\RequestLogMiddleware::class, \App\Middleware\AppAuthMiddleWare::class]]);
|
|
|
|
|
|
|
|
|
|
Router::addGroup('/notify',function () {
|
|
|
|
|