From fc7714198f7c435d6a074b9ac2549289a890146c Mon Sep 17 00:00:00 2001 From: xRain Date: Sat, 25 Oct 2025 17:12:39 +0800 Subject: [PATCH] add loginitem update --- Helpers/SimApiAuth.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; + } + /// /// 获取登陆信息 ///