This commit is contained in:
lishuo committed 2022-05-13 09:28:58 +08:00
1 parent 509c309252
commit 11b131b24a
60 files changed
+2505 -632

No files matched your search

+5
View File
@@ -37,5 +37,10 @@ namespace Assets.Scripts.Apis
{
return await GetAsync<JsonResult<JObject>>($"GameRoom/ConfirmRoomPwd?id={id}&pwd={pwd}");
}
public JsonResult<string> GetMapVideoURL(int routeId)
{
return Get<JsonResult<string>>($"Map/GetMapVideoURL?id={routeId}");
}
}
}
+4 -2
View File
@@ -46,12 +46,12 @@ namespace Assets.Scripts.Apis.Models
public List<RoomPlayerModel> RoomPlayerList { get; set; }
public static List<GameRoomModel> Parse(string s)
{
if (s.Equals("list"))
if (s.Equals("l"))
return null;
List<GameRoomModel> list = new List<GameRoomModel>();
try
{
var arr = s.Replace("list[", "").Replace("[","").Split(']');
var arr = s.Replace("l[", "").Replace("[","").Split(']');
foreach (var item in arr)
{
if (string.IsNullOrEmpty(item))
@@ -103,6 +103,7 @@ namespace Assets.Scripts.Apis.Models
public int RoomId { get; set; }
public string WxHeadImage { get; set; }
public string Name { get; set; }
public string Country { get; set; }
public int Sex { get; set; }
public double Weight { get; set; }
public int FTP { get; set; }
@@ -151,6 +152,7 @@ namespace Assets.Scripts.Apis.Models
item.Weight = user.Weight;
item.Name = user.Name;
item.Sex = user.Sex;
item.Country = user.Country;
}
}
return list;