This commit is contained in:
sin365 2024-08-22 14:24:11 +08:00
parent aef3d2045b
commit 6a9ce55af8
2 changed files with 9 additions and 0 deletions

View File

@ -66,10 +66,12 @@ namespace AxibugEmuOnline.Web.Controllers
// Ö´Ðвéѯ²¢´¦Àí½á¹û // Ö´Ðвéѯ²¢´¦Àí½á¹û
using (var reader = command.ExecuteReader()) using (var reader = command.ExecuteReader())
{ {
int orderIndex = Page * PageSize;
while (reader.Read()) while (reader.Read())
{ {
resp.gameList.Add(new Resp_RomInfo() resp.gameList.Add(new Resp_RomInfo()
{ {
orderid = orderIndex++,
id = reader.GetInt32(0), id = reader.GetInt32(0),
romName = !reader.IsDBNull(1) ? reader.GetString(1) : string.Empty, romName = !reader.IsDBNull(1) ? reader.GetString(1) : string.Empty,
gType = !reader.IsDBNull(2) ? reader.GetString(2) : string.Empty, gType = !reader.IsDBNull(2) ? reader.GetString(2) : string.Empty,
@ -125,6 +127,7 @@ namespace AxibugEmuOnline.Web.Controllers
public class Resp_RomInfo public class Resp_RomInfo
{ {
public int orderid { get; set; }
public int id { get; set; } public int id { get; set; }
public string romName { get; set;} public string romName { get; set;}
public string gType { get; set; } public string gType { get; set; }

View File

@ -24,6 +24,7 @@ Response:
"resultAllCount": 6, "resultAllCount": 6,
"gameList": [ "gameList": [
{ {
"orderid": 0,
"id": 190, "id": 190,
"romName": "热血物语", "romName": "热血物语",
"gType": "ACT", "gType": "ACT",
@ -34,6 +35,7 @@ Response:
"stars": 0 "stars": 0
}, },
{ {
"orderid": 1,
"id": 460, "id": 460,
"romName": "热血时代剧(热血道中记)", "romName": "热血时代剧(热血道中记)",
"gType": "ACT", "gType": "ACT",
@ -44,6 +46,7 @@ Response:
"stars": 0 "stars": 0
}, },
{ {
"orderid": 2,
"id": 585, "id": 585,
"romName": "热血硬派", "romName": "热血硬派",
"gType": "ACT", "gType": "ACT",
@ -54,6 +57,7 @@ Response:
"stars": 0 "stars": 0
}, },
{ {
"orderid": 3,
"id": 674, "id": 674,
"romName": "热血物语(美版)", "romName": "热血物语(美版)",
"gType": "ACT", "gType": "ACT",
@ -64,6 +68,7 @@ Response:
"stars": 0 "stars": 0
}, },
{ {
"orderid": 4,
"id": 826, "id": 826,
"romName": "热血时代剧美版(热血道中记美版)", "romName": "热血时代剧美版(热血道中记美版)",
"gType": "ACT", "gType": "ACT",
@ -118,6 +123,7 @@ Response:
public class Resp_RomInfo public class Resp_RomInfo
{ {
public int orderid { get; set; }
public int id { get; set; } public int id { get; set; }
public string romName { get; set;} public string romName { get; set;}
public string gType { get; set; } public string gType { get; set; }