This repository has been archived on 2024-03-29. You can view files and clone it, but cannot push or open issues or pull requests.
FreeSR/FreeSR.Dispatch/Handlers/QueryGatewayHandler.cs

38 lines
1.2 KiB
C#
Raw Permalink Normal View History

2024-01-27 13:06:07 +00:00
namespace FreeSR.Dispatch.Handlers
{
using Ceen;
using FreeSR.Dispatch.Util;
using FreeSR.Proto;
using System.Threading.Tasks;
internal class QueryGatewayHandler : IHttpModule
{
public async Task<bool> HandleAsync(IHttpContext context)
{
context.Response.StatusCode = HttpStatusCode.OK;
context.Response.ContentType = "text/plain";
await context.Response.WriteAllAsync(Convert.ToBase64String(ProtobufUtil.Serialize(new Gateserver
{
2024-01-27 13:08:24 +00:00
Retcode = 0,
Msg0 = "OK",
2024-01-27 13:06:07 +00:00
Ip = "127.0.0.1",
RegionName = "FreeSR",
Port = 22301,
2024-01-27 13:08:24 +00:00
B1 = true,
B2 = true,
B3 = true,
B4 = true,
B5 = true,
B6 = true,
B7 = true,
Gfemaboifee = true,
//MdkResVersion = "5335706",
AssetBundleUrl = "https://autopatchcn.bhsr.com/asb/BetaLive/output_6355877_591cdefefe9b",
ExResourceUrl = "https://autopatchcn.bhsr.com/design_data/BetaLive/output_6367879_26191d7cc23b",
2024-01-27 13:06:07 +00:00
})));
return true;
}
}
}