XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.ServerInteractive

[DLL] Server interaction extension, including user identity verification and querying in conjunction with AutoConfig

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.ServerInteractive

修复UserLoginAutoCleanService服务中,对用户信息清理进行foreach时,可能会抛出集合修改异常的问题 修复服务器基础配置文件无法保存数据的问题

762922f
XFE工作室室长 <mail@xfegzs.com>
提交于

代码差异

3 个文件 +6 -3
Modified XFEExtension.NetCore.ServerInteractive/Utilities/Server/Services/CoreService/UserLoginAutoCleanService.cs +2 -1
@@ -55,8 +55,9 @@ public class UserLoginAutoCleanService : ServerCoreRegisterServiceBase, IUserSer
55 55 var expiredSessions = GetEncryptedUserLoginModelFunction().Where(user => user.UserLoginModel.EndDateTime < DateTime.Now).ToList();
56 56 if (expiredSessions.Count > 0)
57 57 {
58 foreach (var expiredSession in expiredSessions)
58 for (int i = expiredSessions.Count - 1; i >= 0; i--)
59 59 {
60 var expiredSession = expiredSessions[i];
60 61 Console.WriteLine($"[DEBUG]用户 {expiredSession.UserLoginModel.UID} 的登录已过期,正在清理...");
61 62 RemoveEncryptedUserLoginModelFunction(expiredSession);
62 63 }
Modified XFEExtension.NetCore.ServerInteractive/Utilities/Server/Services/ServerService/ServerIpInitializer.cs +1 -0
@@ -35,5 +35,6 @@ public class ServerIpInitializer : ServerInitializerServiceBase
35 35 Console.WriteLine($"服务器{coreServerService.CoreServerName}设置完成!IP为:{ipAddress}");
36 36 }
37 37 }
38 ServerBaseProfile.SaveProfile();
38 39 }
39 40 }
Modified XFEExtension.NetCore.ServerInteractive/XFEExtension.NetCore.ServerInteractive.csproj +3 -2
@@ -5,7 +5,7 @@
5 5 <ImplicitUsings>enable</ImplicitUsings>
6 6 <Nullable>enable</Nullable>
7 7 <GenerateDocumentationFile>True</GenerateDocumentationFile>
8 <Version>1.0.9</Version>
8 <Version>1.0.10</Version>
9 9 <Title>XFEExtension.NetCore.ServerInteractive</Title>
10 10 <RepositoryUrl>https://github.com/XFEstudio/XFEExtension.NetCore.ServerInteractive</RepositoryUrl>
11 11 <AnalysisLevel>latest</AnalysisLevel>
@@ -21,7 +21,8 @@
21 21 <PackageReleaseNotes>
22 22 ## 调整
23 23
24 调换构建器扩展方法UseXFEStandardServerCore的传参顺序
24 修复UserLoginAutoCleanService服务中,对用户信息清理进行foreach时,可能会抛出集合修改异常的问题
25 修复服务器基础配置文件无法保存数据的问题
25 26
26 27 ## 新增
27 28