master
ljl 1 year ago
parent d6ee56ad64
commit c2dd8a96f6

@ -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);
}
}

Loading…
Cancel
Save