【类 型】:fix

【主	题】:取消登录授权 时间延迟
【描	述】:
	[原因]:服务器时区 bug
	[过程]:
	[影响]:
【结	束】

# 类型 包含:
# feat:新功能(feature)
# fix:修补bug
# docs:文档(documentation)
# style: 格式(不影响代码运行的变动)
# refactor:重构(即不是新增功能,也不是修改bug的代码变动)
# test:增加测试
# chore:构建过程或辅助工具的变动
This commit is contained in:
tk 2024-06-05 13:24:40 +08:00
parent 7ea6d2319f
commit 43d0ae2a6f
2 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ class PublicController extends Controller
$data = [
'iat' => $currtime, // 签发时间(时间戳)
'iss' => 'jwt_admin', // 签发者
'nbf' => $currtime + 2, // 在此时间之前不可用 (这里是2秒以内)
'nbf' => $currtime, // 在此时间之前不可用 (这里是2秒以内)
'exp' => strtotime('tomorrow'), //过期时间 到第二天凌晨
'openid' => $openid,
'session_key' => $session_key,

View File

@ -76,7 +76,7 @@ class LoginController extends Controller
$data = [
'iat' => $currtime, // 签发时间(时间戳)
'iss' => 'jwt_admin', // 签发者
'nbf' => $currtime + 2, // 在此时间之前不可用 (这里是2秒以内)
'nbf' => $currtime, // 在此时间之前不可用 (这里是2秒以内)
'exp' => strtotime('tomorrow'), //过期时间 到第二天凌晨
'jti' => md5(uniqid('JWT') . $currtime),
'sub' => 'http://localhost:8080',