diff --git a/app/Controller/Payment/ReturnController.php b/app/Controller/Payment/ReturnController.php index 76b7e42..11f1aad 100644 --- a/app/Controller/Payment/ReturnController.php +++ b/app/Controller/Payment/ReturnController.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace App\Controller\Payment; +use App\Helper\Log; use App\Service\RequestService; use Hyperf\HttpServer\Contract\RequestInterface; use Hyperf\HttpServer\Contract\ResponseInterface; @@ -21,7 +22,10 @@ class ReturnController extends AbstractController public function go(RequestInterface $request, ResponseInterface $response): Psr7ResponseInterface { $token = $request->route('token'); + Log::info('returnPage token:' . $token, [], 'platform'); $requestLog = $this->requestService->getRequestLogByToken($token); - return $response->redirect($requestLog->getDataValue('returnUrl')); + $returnUrl = $requestLog->getDataValue('returnUrl'); + Log::info('returnPage returnUrl:' . $returnUrl, [], 'platform'); + return $response->redirect($returnUrl); } }