diff --git a/Helpers/SimApiAuth.cs b/Helpers/SimApiAuth.cs index 6a8594d..895916e 100644 --- a/Helpers/SimApiAuth.cs +++ b/Helpers/SimApiAuth.cs @@ -23,6 +23,18 @@ public class SimApiAuth(IDistributedCache cache) return token; } + /// + /// 更新登陆信息 + /// + /// + /// + /// + public string Update(SimApiLoginItem loginItem, string token) + { + cache.SetString(token, JsonSerializer.Serialize(loginItem)); + return token; + } + /// /// 获取登陆信息 ///