mirror of
https://github.com/MikuLeaks/MikuSB.git
synced 2026-06-04 10:43:59 +00:00
can login
This commit is contained in:
@@ -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}")]
|
||||||
|
|||||||
Reference in New Issue
Block a user