执行代码清理

This commit is contained in:
milimoe 2025-03-18 01:39:11 +08:00
parent d35f9aa81a
commit 6831114b62
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
6 changed files with 7 additions and 10 deletions

View File

@ -84,7 +84,7 @@ namespace Milimoe.FunGame.Server.Model
NowGamingServer = null; NowGamingServer = null;
return true; return true;
} }
if (type == SocketMessageType.AnonymousGameServer) if (type == SocketMessageType.AnonymousGameServer)
{ {
return await AnonymousGameServerHandler(obj); return await AnonymousGameServerHandler(obj);

View File

@ -1,8 +1,5 @@
using System.Collections; using System.Text;
using System.Text;
using Milimoe.FunGame.Core.Api.Utility;
using Milimoe.FunGame.Core.Library.Constant; using Milimoe.FunGame.Core.Library.Constant;
using Milimoe.FunGame.Core.Model;
namespace Milimoe.FunGame.Server.Others namespace Milimoe.FunGame.Server.Others
{ {
@ -17,7 +14,7 @@ namespace Milimoe.FunGame.Server.Others
/// 日志级别 /// 日志级别
/// </summary> /// </summary>
public static string LogLevel { get; set; } = "INFO"; public static string LogLevel { get; set; } = "INFO";
/// <summary> /// <summary>
/// 日志级别(枚举值) /// 日志级别(枚举值)
/// </summary> /// </summary>

View File

@ -156,7 +156,7 @@ namespace Milimoe.FunGame.Server.Services
return (msg, type, success); return (msg, type, success);
} }
public static (bool Success, DataSet DataSet, string Msg, Guid Key) PreLogin(object sender, string username, string password, string autokey = "") public static (bool Success, DataSet DataSet, string Msg, Guid Key) PreLogin(object sender, string username, string password, string autokey = "")
{ {
bool success = false; bool success = false;

View File

@ -253,7 +253,7 @@ namespace Milimoe.FunGame.Server.Services
} }
return username; return username;
} }
/// <summary> /// <summary>
/// 更新指定用户的密钥 /// 更新指定用户的密钥
/// </summary> /// </summary>

View File

@ -108,7 +108,7 @@ namespace Milimoe.FunGame.Server.Services
} }
Type(); Type();
} }
public static void WriteLine_Addons(string addon, string msg, InvokeMessageType type = InvokeMessageType.System, LogLevel level = LogLevel.Info, bool useLevel = true) public static void WriteLine_Addons(string addon, string msg, InvokeMessageType type = InvokeMessageType.System, LogLevel level = LogLevel.Info, bool useLevel = true)
{ {
if (type == InvokeMessageType.Warning) if (type == InvokeMessageType.Warning)

View File

@ -65,7 +65,7 @@ namespace Milimoe.FunGame.WebAPI.Models
{ {
return await AnonymousGameServerHandler(obj); return await AnonymousGameServerHandler(obj);
} }
if (type == SocketMessageType.DataRequest) if (type == SocketMessageType.DataRequest)
{ {
return await DataRequestHandler(obj); return await DataRequestHandler(obj);