mirror of
https://git.lewd.wtf/PGR/ascnet
synced 2025-12-13 06:34:38 +01:00
minimum sdk done
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using AscNet.Common.Util;
|
||||
using AscNet.SDKServer.Models;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace AscNet.SDKServer.Controllers
|
||||
@@ -35,10 +37,10 @@ namespace AscNet.SDKServer.Controllers
|
||||
remoteConfigs.AddConfig("MemoryLimit", 2048);
|
||||
remoteConfigs.AddConfig("CloseMsgEncrypt", false);
|
||||
remoteConfigs.AddConfig("ServerListStr", $"{Common.Common.config.GameServer.RegionName}#{Common.Common.config.GameServer.Host}/api/Login/Login");
|
||||
remoteConfigs.AddConfig("AndroidPayCallbackUrl", $"{Common.Common.config.GameServer.Host}/api/XPay/HeroHgAndroidPayResult"); // i just wanna know what this is
|
||||
remoteConfigs.AddConfig("IosPayCallbackUrl", $"{Common.Common.config.GameServer.Host}/api/XPay/HeroHgIosPayResult"); // i just wanna know what this is
|
||||
remoteConfigs.AddConfig("WatermarkEnabled", true); // i just wanna know what this is
|
||||
remoteConfigs.AddConfig("PicComposition", "empty"); // i just wanna know what this is
|
||||
remoteConfigs.AddConfig("AndroidPayCallbackUrl", $"{Common.Common.config.GameServer.Host}/api/XPay/HeroHgAndroidPayResult");
|
||||
remoteConfigs.AddConfig("IosPayCallbackUrl", $"{Common.Common.config.GameServer.Host}/api/XPay/HeroHgIosPayResult");
|
||||
remoteConfigs.AddConfig("WatermarkEnabled", false); // i just wanna know what this is
|
||||
remoteConfigs.AddConfig("PicComposition", "empty");
|
||||
remoteConfigs.AddConfig("DeepLinkEnabled", true);
|
||||
remoteConfigs.AddConfig("DownloadMethod", 1);
|
||||
remoteConfigs.AddConfig("PcPayCallbackList", $"{Common.Common.config.GameServer.Host}/api/XPay/KuroPayResult");
|
||||
@@ -46,12 +48,32 @@ namespace AscNet.SDKServer.Controllers
|
||||
return TsvTool.SerializeObject(remoteConfigs);
|
||||
});
|
||||
|
||||
app.MapGet("/prod/client/notice/config/com.kurogame.punishing.grayraven.en.pc/{version}/LoginNotice.json", (HttpContext ctx) =>
|
||||
{
|
||||
return JsonConvert.SerializeObject(new LoginNotice()
|
||||
{
|
||||
BeginTime = 0,
|
||||
EndTime = 0,
|
||||
HtmlUrl = "/",
|
||||
Id = "1",
|
||||
ModifyTime = 0,
|
||||
Title = "NOTICE"
|
||||
});
|
||||
});
|
||||
|
||||
app.MapPost("/feedback", (HttpContext ctx) =>
|
||||
{
|
||||
return ctx.Response.WriteAsJsonAsync(new
|
||||
return "1";
|
||||
});
|
||||
|
||||
app.MapGet("/api/Login/Login", ([FromQuery] int loginType, [FromQuery] int userId, [FromQuery] string token, [FromQuery] string clientIp) =>
|
||||
{
|
||||
return JsonConvert.SerializeObject(new LoginGate()
|
||||
{
|
||||
code = 0,
|
||||
msg = "ok"
|
||||
Code = 0,
|
||||
Ip = Common.Common.config.GameServer.Host,
|
||||
Port = Common.Common.config.GameServer.Port,
|
||||
Token = token
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user