forked from sin365/AxibugEmuOnline
Compare commits
No commits in common. "b2d22a503d2e6603c94db40b78280e5f647799f8" and "ec8f01065b2c83844a98c901e3e4758ac9388cc6" have entirely different histories.
b2d22a503d
...
ec8f01065b
@ -16,9 +16,6 @@ namespace AxibugEmuOnline.Web.Common
|
|||||||
public string DBPwd{get;set;}
|
public string DBPwd{get;set;}
|
||||||
public string RomDir{get;set;}
|
public string RomDir{get;set;}
|
||||||
public string ImageDir { get; set; }
|
public string ImageDir { get; set; }
|
||||||
public string ServerIp { get; set; }
|
|
||||||
public ushort ServerPort { get; set; }
|
|
||||||
public string ClientVersion { get; set; }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -41,9 +38,6 @@ namespace AxibugEmuOnline.Web.Common
|
|||||||
DBName = "DBName",
|
DBName = "DBName",
|
||||||
RomDir = "./Rom",
|
RomDir = "./Rom",
|
||||||
ImageDir = "./Img",
|
ImageDir = "./Img",
|
||||||
ServerIp = "127.0.0.1",
|
|
||||||
ServerPort = 10001,
|
|
||||||
ClientVersion = "0.0.0.1"
|
|
||||||
};
|
};
|
||||||
|
|
||||||
string jsonString = JsonSerializer.Serialize(sampleCfg, new JsonSerializerOptions()
|
string jsonString = JsonSerializer.Serialize(sampleCfg, new JsonSerializerOptions()
|
||||||
|
|||||||
@ -13,20 +13,6 @@ namespace AxibugEmuOnline.Web.Controllers
|
|||||||
_logger = logger;
|
_logger = logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet]
|
|
||||||
public JsonResult CheckStandInfo(int platform, string version)
|
|
||||||
{
|
|
||||||
Resp_CheckStandInfo resp = new Resp_CheckStandInfo()
|
|
||||||
{
|
|
||||||
needUpdateClient = 0,
|
|
||||||
clientVersion = Config.cfg.ClientVersion,
|
|
||||||
serverIp = Config.cfg.ServerIp,
|
|
||||||
serverPort = Config.cfg.ServerPort,
|
|
||||||
downLoadUrl = ""
|
|
||||||
};
|
|
||||||
return new JsonResult(resp);
|
|
||||||
}
|
|
||||||
|
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
public JsonResult NesRomList(string SearchKey,int Ptype,int GType,int Page, int PageSize)
|
public JsonResult NesRomList(string SearchKey,int Ptype,int GType,int Page, int PageSize)
|
||||||
{
|
{
|
||||||
@ -131,16 +117,6 @@ namespace AxibugEmuOnline.Web.Controllers
|
|||||||
ALLINONE,
|
ALLINONE,
|
||||||
}
|
}
|
||||||
|
|
||||||
class Resp_CheckStandInfo
|
|
||||||
{
|
|
||||||
public int needUpdateClient { get; set; }
|
|
||||||
public string serverIp { get; set; }
|
|
||||||
public ushort serverPort { get; set; }
|
|
||||||
public string clientVersion { get; set; }
|
|
||||||
public string downLoadUrl { get; set; }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
class Resp_GameList
|
class Resp_GameList
|
||||||
{
|
{
|
||||||
public int page { get; set; }
|
public int page { get; set; }
|
||||||
|
|||||||
@ -2,41 +2,6 @@
|
|||||||
|
|
||||||
这里说明,WebApi类的接口
|
这里说明,WebApi类的接口
|
||||||
|
|
||||||
### 基本信息检查
|
|
||||||
|
|
||||||
```
|
|
||||||
{WebHost}/api/NesRomList?platform=<平台编号>&version=<版本>
|
|
||||||
```
|
|
||||||
Request:
|
|
||||||
|
|
||||||
```
|
|
||||||
http://emu.axibug.com/api/CheckStandInfo?platform=1&version=1.0.0.0
|
|
||||||
```
|
|
||||||
|
|
||||||
Response:
|
|
||||||
|
|
||||||
```
|
|
||||||
{
|
|
||||||
"needUpdateClient": 0,
|
|
||||||
"serverIp": "139.186.160.243",
|
|
||||||
"serverPort": 10492,
|
|
||||||
"clientVersion": "0.0.0.1",
|
|
||||||
"downLoadUrl": ""
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
序列化C#实体类示例
|
|
||||||
|
|
||||||
```
|
|
||||||
class Resp_CheckStandInfo
|
|
||||||
{
|
|
||||||
public int needUpdateClient { get; set; }
|
|
||||||
public string serverIp { get; set; }
|
|
||||||
public ushort serverPort { get; set; }
|
|
||||||
public string clientVersion { get; set; }
|
|
||||||
public string downLoadUrl { get; set; }
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Nes游戏列表
|
### Nes游戏列表
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user