From 9eeca6aa905cffea1c95d965b4790fbd20ce2275 Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 25 十月 2024 16:19:16 +0800 Subject: [PATCH] 更新字典数据获取 --- WIDESEAWCS_Server/WIDESEAWCS_Core/Authorization/JwtHelper.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/Authorization/JwtHelper.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/Authorization/JwtHelper.cs index 5c6f5e5..fc6da1b 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_Core/Authorization/JwtHelper.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/Authorization/JwtHelper.cs @@ -22,7 +22,7 @@ /// <returns></returns> public static string IssueJwt(TokenModelJwt tokenModel) { - string exp = $"{new DateTimeOffset(DateTime.Now.AddMinutes(/*tokenModel.UserId == 1 ? 43200 : */AppSettings.app("ExpMinutes").ObjToInt())).ToUnixTimeSeconds()}"; + string exp = $"{new DateTimeOffset(DateTime.Now.AddMinutes(/*tokenModel.UserId == 1 ? 43200 : */AppSettings.Get("ExpMinutes").ObjToInt())).ToUnixTimeSeconds()}"; List<Claim> claims = new List<Claim> { new Claim(JwtRegisteredClaimNames.Jti, tokenModel.UserId.ToString()), -- Gitblit v1.9.3