From d3aaeb73619ff37161081389ca97b8c237e44515 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 10 Nov 2023 18:13:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0token=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/service/JwtTokenService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/service/JwtTokenService.php b/app/api/service/JwtTokenService.php index 2f29dbdb..dd21e1aa 100644 --- a/app/api/service/JwtTokenService.php +++ b/app/api/service/JwtTokenService.php @@ -39,10 +39,10 @@ class JwtTokenService $time = time(); $host = app('request')->host(); $params += [ - 'iss' => $host, - 'aud' => $host, + 'iss' => $host, //签发者 + 'aud' => $host, //签发时间 'iat' => $time, - 'nbf' => $time, + 'nbf' => $time, //生效时间 'exp' => $time + 7 * 24 * 3600, ]; $params['data'] = [