执行代码清理

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;
return true;
}
if (type == SocketMessageType.AnonymousGameServer)
{
return await AnonymousGameServerHandler(obj);

View File

@ -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
/// 日志级别
/// </summary>
public static string LogLevel { get; set; } = "INFO";
/// <summary>
/// 日志级别(枚举值)
/// </summary>

View File

@ -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;

View File

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

View File

@ -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)

View File

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