岛主竞拍接口

This commit is contained in:
杨号敬 2025-01-04 15:46:52 +08:00
parent 7c557a95db
commit f8b808833d
2 changed files with 32 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class Auctioninformation: MonoBehaviour
{ "client-info", "{\"platform\":\"ios\",\"phone_product\":\"apple\",\"phone_model\":\"iPhone_8\",\"system_version\":\"12.0\",\"screen_size\":\"750*1334\",\"device_no\":\"e3e277810fff9d955ebdd7037eff51a8\",\"version\":\"1.0.0\"}" }
};
}
public async Task<AuctionResponse> Island(int count)
public async Task<AuctionResponse> InformationTask()
{
string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "GET", "{}", CreateHeaders());

View File

@ -51,6 +51,9 @@ public class Scene_main_jiekou :MonoBehaviour
treeluckywheel treeluckywheel = new treeluckywheel();
treeluckywheeldraw treeluckywheeldraw = new treeluckywheeldraw();
treeluckywheeladvert treeluckywheeladvert = new treeluckywheeladvert();
Auctioninformation auctioninformation = new Auctioninformation();
Auctioncertificate auctioncertificate=new Auctioncertificate();
Islandownerbidding islandownerbidding=new Islandownerbidding();
public static Scene_main_jiekou instance;
//public PlayerInfoData infoData;
@ -347,5 +350,32 @@ public class Scene_main_jiekou :MonoBehaviour
return await treeluckywheeladvert.Treeluckywheeladverts(body);
}
/// <summary>
/// 岛主竞拍信息
/// </summary>
/// <returns></returns>
public async Task<AuctionResponse> Auctioninformations()
{
return await auctioninformation.InformationTask();
}
/// <summary>
/// 岛主证书
/// </summary>
/// <returns></returns>
public async Task<certificateResponse> AuctionCertificate()
{
return await auctioncertificate.certificate();
}
/// <summary>
/// 岛主竞拍
/// </summary>
/// <param name="count"></param>
/// <returns></returns>
public async Task<IslandResponse> Island(int count)
{
Islandbody body = new Islandbody();
body.count = count;
return await islandownerbidding.Island(body);
}
}