diff --git a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs index 2f207961..04b10885 100644 --- a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs +++ b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs @@ -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 Island(int count) + public async Task InformationTask() { string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "GET", "{}", CreateHeaders()); diff --git a/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs b/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs index 6edff07e..f9ef440e 100644 --- a/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs +++ b/meng_yao/Assets/script/scene_Main/Scene_main_jiekou.cs @@ -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); } - + /// + /// 岛主竞拍信息 + /// + /// + public async Task Auctioninformations() + { + return await auctioninformation.InformationTask(); } + /// + /// 岛主证书 + /// + /// + public async Task AuctionCertificate() + { + return await auctioncertificate.certificate(); + } + /// + /// 岛主竞拍 + /// + /// + /// + public async Task Island(int count) + { + Islandbody body = new Islandbody(); + body.count = count; + return await islandownerbidding.Island(body); + } + +}