can login

This commit is contained in:
Kei-Luna
2026-04-20 14:52:37 +09:00
parent 279da58dc1
commit fbacecb130

View File

@@ -155,7 +155,7 @@ public class RouteController : ControllerBase
playerFillAgeUrl = "", playerFillAgeUrl = "",
status = 0, status = 0,
thirdPartyUid = "", thirdPartyUid = "",
finalToken, token = finalToken,
type = "google", type = "google",
uid = finalUid uid = finalUid
}, },
@@ -210,15 +210,25 @@ public class RouteController : ControllerBase
[HttpGet("/query")] [HttpGet("/query")]
public IActionResult GetQuery([FromQuery] string? version, [FromQuery] string? platform) public IActionResult GetQuery([FromQuery] string? version, [FromQuery] string? platform)
{ {
object rsp = new var servers = new[]
{ {
platform, new
version, {
id = 1,
server_id = 1,
name = Config.GameServer.GameServerName,
title = Config.GameServer.GameServerName,
host = Config.GameServer.PublicAddress, host = Config.GameServer.PublicAddress,
port = Config.GameServer.Port ip = Config.GameServer.PublicAddress,
port = Config.GameServer.Port,
status = 1,
state = 1,
is_open = true,
open = true,
recommend = true
}
}; };
return Ok(servers);
return Ok(rsp);
} }
[HttpGet("/query_version={version}")] [HttpGet("/query_version={version}")]