mirror of
https://github.com/project-redbud/FunGame-Server.git
synced 2025-12-05 00:06:03 +00:00
执行代码清理
This commit is contained in:
parent
d35f9aa81a
commit
6831114b62
@ -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);
|
||||||
|
|||||||
@ -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>
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -253,7 +253,7 @@ namespace Milimoe.FunGame.Server.Services
|
|||||||
}
|
}
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 更新指定用户的密钥
|
/// 更新指定用户的密钥
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user