master
elf 1 year ago
parent aee5d7ade7
commit 0594758a02

@ -22,6 +22,6 @@ class ReturnController extends AbstractController
{
$token = $request->route('token');
$requestLog = $this->requestService->getRequestLogByToken($token);
return $response->redirect($requestLog->getDataValue('return_url'));
return $response->redirect($requestLog->getDataValue('returnUrl'));
}
}

@ -4,6 +4,7 @@ declare(strict_types=1);
use App\Controller\Payment\NotifyController;
use App\Controller\Payment\PayController;
use App\Controller\Payment\ReturnController;
use Hyperf\HttpServer\Router\Router;
Router::get('/favicon.ico', function () {
@ -31,3 +32,6 @@ Router::addGroup('/notify',function () {
Router::addRoute(['GET', 'POST'], '/refund/{token}', [NotifyController::class, 'refund']);
});
Router::addRoute(['GET', 'POST'], '/return/{token}', [ReturnController::class, 'go']);

Loading…
Cancel
Save