岛主证书

This commit is contained in:
杨号敬 2025-01-04 17:57:41 +08:00
parent 72677d8179
commit 9b97faadee
5 changed files with 293 additions and 175 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,15 +24,16 @@ public class Auctioncertificate: MonoBehaviour
{ {
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/cert_list", "GET", "{}", CreateHeaders()); string response = await myWeb.SendRequest(myWeb.URL + "/api/island/cert_list", "GET", "{}", CreateHeaders());
Debug.Log("µºÖ÷Ö¤Êé" + response); Debug.Log("µºÖ÷Ö¤Êé" + response);
certificateResponse certificate = JsonConvert.DeserializeObject<certificateResponse>(response); certificateResponse certificate = JsonConvert.DeserializeObject<certificateResponse>(response);
//Debug.Log(teamInfo.Data.Info.Nickname); //Debug.Log(teamInfo.Data.Info.Nickname);
return certificate; return certificate;
} }
} }
public class certificateResponse public class certificateResponse: myResponse
{ {
public certificateData Data { get; set; } public List<certificateData> Data { get; set; }
} }
public class certificateData public class certificateData
{ {

View File

@ -31,7 +31,7 @@ public class Auctioninformation: MonoBehaviour
} }
} }
public class AuctionResponse public class AuctionResponse: myResponse
{ {
public AuctionData Data { get; set; } public AuctionData Data { get; set; }
} }

View File

@ -35,12 +35,12 @@ public class Islandbody
{ {
public int count; public int count;
} }
public class IslandResponse public class IslandResponse:myResponse
{ {
public IslandData Data { get; set; } public IslandData Data { get; set; }
} }
public class IslandData public class IslandData
{ {
public int balance { get; set; } public float balance { get; set; }
public int invest_total { get; set; } public float invest_total { get; set; }
} }

View File

@ -26,7 +26,7 @@ public class capitalbalance : MonoBehaviour
string response = await myWeb.SendRequest(myWeb.URL + "/api/capital/balance", "GET", "{}", CreateHeaders()); string response = await myWeb.SendRequest(myWeb.URL + "/api/capital/balance", "GET", "{}", CreateHeaders());
Debug.Log("资产数据" + response); Debug.Log("资产数据" + response);
CapitalbalanceIndefo capitalbalanceInfo = JsonConvert.DeserializeObject<CapitalbalanceIndefo>(response); CapitalbalanceIndefo capitalbalanceInfo = JsonConvert.DeserializeObject<CapitalbalanceIndefo>(response);
Debug.Log("======" + capitalbalanceInfo.data.water); // Debug.Log("======" + capitalbalanceInfo.data.water);
return capitalbalanceInfo; return capitalbalanceInfo;
} }
} }