Implement packet handler sender

This commit is contained in:
Somebody
2024-02-25 16:45:05 +08:00
parent be9fec5a9f
commit 59d55c222c
68 changed files with 9143 additions and 10 deletions

View File

@@ -17,13 +17,13 @@ namespace EggLink.DanhengServer.Server.Http.Handler
var gateServer = new Gateserver() {
RegionName = config.GameServer.GameServerId,
Ip = config.GameServer.PublicAddress,
Port = (uint)config.GameServer.PublicPort,
Port = config.GameServer.PublicPort,
Msg = "Access verification failed. Please check if you have logged in to the correct account and server.",
Unk1 = true,
Unk2 = true,
Unk3 = true,
Unk4 = true,
Unk5 = true
Unk5 = true,
};
if (urlData.AssetBundleUrl != null)
@@ -39,13 +39,13 @@ namespace EggLink.DanhengServer.Server.Http.Handler
if (urlData.LuaUrl != null)
{
gateServer.LuaUrl = urlData.LuaUrl;
gateServer.MdkResVersion = urlData.LuaUrl.Split('/')[urlData.LuaUrl.Split('/').Length - 1].Split('_')[1];
gateServer.MdkResVersion = urlData.LuaUrl.Split('/')[^1].Split('_')[1];
}
if (urlData.IfixUrl != null)
{
gateServer.IfixUrl = urlData.IfixUrl;
gateServer.IfixVersion = urlData.IfixUrl.Split('/')[urlData.IfixUrl.Split('/').Length - 1].Split('_')[1];
gateServer.IfixVersion = urlData.IfixUrl.Split('/')[^1].Split('_')[1];
}
Logger.Info("Client request: query_gateway");