From c2dd8a96f6db41d3bf99755d8eb011749c944da5 Mon Sep 17 00:00:00 2001 From: ljl Date: Wed, 16 Aug 2023 16:53:03 +0800 Subject: [PATCH] yh --- app/Controller/Payment/ReturnController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); } }