diff --git a/FunGame.Server/Models/ServerModel.cs b/FunGame.Server/Models/ServerModel.cs index 6ad2c27..83ffd66 100644 --- a/FunGame.Server/Models/ServerModel.cs +++ b/FunGame.Server/Models/ServerModel.cs @@ -84,7 +84,7 @@ namespace Milimoe.FunGame.Server.Model NowGamingServer = null; return true; } - + if (type == SocketMessageType.AnonymousGameServer) { return await AnonymousGameServerHandler(obj); diff --git a/FunGame.Server/Others/Config.cs b/FunGame.Server/Others/Config.cs index 940dbf0..8b5ed8a 100644 --- a/FunGame.Server/Others/Config.cs +++ b/FunGame.Server/Others/Config.cs @@ -1,8 +1,5 @@ -using System.Collections; -using System.Text; -using Milimoe.FunGame.Core.Api.Utility; +using System.Text; using Milimoe.FunGame.Core.Library.Constant; -using Milimoe.FunGame.Core.Model; namespace Milimoe.FunGame.Server.Others { @@ -17,7 +14,7 @@ namespace Milimoe.FunGame.Server.Others /// 日志级别 /// public static string LogLevel { get; set; } = "INFO"; - + /// /// 日志级别(枚举值) /// diff --git a/FunGame.Server/Services/DataRequestService.cs b/FunGame.Server/Services/DataRequestService.cs index 24f07ed..b0a5890 100644 --- a/FunGame.Server/Services/DataRequestService.cs +++ b/FunGame.Server/Services/DataRequestService.cs @@ -156,7 +156,7 @@ namespace Milimoe.FunGame.Server.Services return (msg, type, success); } - + public static (bool Success, DataSet DataSet, string Msg, Guid Key) PreLogin(object sender, string username, string password, string autokey = "") { bool success = false; diff --git a/FunGame.Server/Services/FunGameSystem.cs b/FunGame.Server/Services/FunGameSystem.cs index 9190a0f..7543003 100644 --- a/FunGame.Server/Services/FunGameSystem.cs +++ b/FunGame.Server/Services/FunGameSystem.cs @@ -253,7 +253,7 @@ namespace Milimoe.FunGame.Server.Services } return username; } - + /// /// 更新指定用户的密钥 /// diff --git a/FunGame.Server/Services/General.cs b/FunGame.Server/Services/General.cs index 462596b..a3201bc 100644 --- a/FunGame.Server/Services/General.cs +++ b/FunGame.Server/Services/General.cs @@ -108,7 +108,7 @@ namespace Milimoe.FunGame.Server.Services } Type(); } - + public static void WriteLine_Addons(string addon, string msg, InvokeMessageType type = InvokeMessageType.System, LogLevel level = LogLevel.Info, bool useLevel = true) { if (type == InvokeMessageType.Warning) diff --git a/FunGame.WebAPI/Models/RESTfulAPIModel.cs b/FunGame.WebAPI/Models/RESTfulAPIModel.cs index 5d796bc..2fc6ff0 100644 --- a/FunGame.WebAPI/Models/RESTfulAPIModel.cs +++ b/FunGame.WebAPI/Models/RESTfulAPIModel.cs @@ -65,7 +65,7 @@ namespace Milimoe.FunGame.WebAPI.Models { return await AnonymousGameServerHandler(obj); } - + if (type == SocketMessageType.DataRequest) { return await DataRequestHandler(obj);