From 22217f8b6ffc46522bf5bb2c2a791fefd6a2cda4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=8F=B7=E6=95=AC?= <153802103@qq.com> Date: Sat, 4 Jan 2025 16:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B2=9B=E4=B8=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- meng_yao/Assets/Scenes/scene_Main.unity | 54 +++++++++++++++---- .../Islandownerbidding/Auctioninformation.cs | 6 +-- .../Islandownerbidding/Islandownerbidding.cs | 2 +- 3 files changed, 49 insertions(+), 13 deletions(-) diff --git a/meng_yao/Assets/Scenes/scene_Main.unity b/meng_yao/Assets/Scenes/scene_Main.unity index 053c722e..273d05b7 100644 --- a/meng_yao/Assets/Scenes/scene_Main.unity +++ b/meng_yao/Assets/Scenes/scene_Main.unity @@ -17897,13 +17897,14 @@ GameObject: serializedVersion: 6 m_Component: - component: {fileID: 204186791} + - component: {fileID: 204186792} m_Layer: 5 m_Name: Island_Owner m_TagString: Untagged m_Icon: {fileID: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 - m_IsActive: 0 + m_IsActive: 1 --- !u!224 &204186791 RectTransform: m_ObjectHideFlags: 0 @@ -17925,6 +17926,22 @@ RectTransform: m_AnchoredPosition: {x: 0, y: 0} m_SizeDelta: {x: 0, y: 0} m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &204186792 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 204186790} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 8bb6b06bae922b64e847c03efd5f99c8, type: 3} + m_Name: + m_EditorClassIdentifier: + gold: {fileID: 2065901645} + introtext: {fileID: 1134156939} + islandname: {fileID: 0} + InvesttotalText: {fileID: 102322138} --- !u!1 &205715504 GameObject: m_ObjectHideFlags: 0 @@ -64418,6 +64435,10 @@ PrefabInstance: propertyPath: m_Name value: return_btn objectReference: {fileID: 0} + - target: {fileID: 8631885451795898582, guid: 638b7f7423db411419568d073208d929, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} - target: {fileID: 8631885451795898584, guid: 638b7f7423db411419568d073208d929, type: 3} propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size value: 1 @@ -179932,6 +179953,10 @@ PrefabInstance: propertyPath: m_Name value: AssetsPanel objectReference: {fileID: 0} + - target: {fileID: 4284489241738703986, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} - target: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_Pivot.x value: 0.5 @@ -180018,35 +180043,35 @@ PrefabInstance: objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 284 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241791779464, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: -43 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMax.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchorMin.y - value: 1 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.x - value: 428 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489241841894086, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_AnchoredPosition.y - value: -43 + value: 0 objectReference: {fileID: 0} - target: {fileID: 4284489242025471100, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} propertyPath: m_IsActive @@ -180079,6 +180104,17 @@ RectTransform: m_CorrespondingSourceObject: {fileID: 4284489241738703987, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} m_PrefabInstance: {fileID: 2065901643} m_PrefabAsset: {fileID: 0} +--- !u!114 &2065901645 stripped +MonoBehaviour: + m_CorrespondingSourceObject: {fileID: 4284489241406162018, guid: cb107975b9c5d0340b2b96ff946e1b93, type: 3} + m_PrefabInstance: {fileID: 2065901643} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3} + m_Name: + m_EditorClassIdentifier: --- !u!114 &2067849332 MonoBehaviour: m_ObjectHideFlags: 0 diff --git a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs index 04b10885..d043c9f6 100644 --- a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs +++ b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Auctioninformation.cs @@ -23,7 +23,7 @@ public class Auctioninformation: MonoBehaviour public async Task InformationTask() { - string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "GET", "{}", CreateHeaders()); + string response = await myWeb.SendRequest(myWeb.URL + "/api/island/info", "GET", "{}", CreateHeaders()); Debug.Log("岛主信息" + response); AuctionResponse Island = JsonConvert.DeserializeObject(response); //Debug.Log(teamInfo.Data.Info.Nickname); @@ -37,10 +37,10 @@ public class AuctionResponse } public class AuctionData { - public int gold { get; set; } + public float gold { get; set; } public string intro_text { get; set; } public int countdown { get; set; } public int island_id { get; set; } public string island_name { get; set; } - public int invest_total { get; set; } + public float invest_total { get; set; } } \ No newline at end of file diff --git a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Islandownerbidding.cs b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Islandownerbidding.cs index 387843f5..bd6346b9 100644 --- a/meng_yao/Assets/script/scene_Main/Islandownerbidding/Islandownerbidding.cs +++ b/meng_yao/Assets/script/scene_Main/Islandownerbidding/Islandownerbidding.cs @@ -23,7 +23,7 @@ public class Islandownerbidding: MonoBehaviour public async Task Island(Islandbody islandbody) { Debug.Log("岛主竞拍入参" + JsonConvert.SerializeObject(islandbody)); - string response = await myWeb.SendRequest(myWeb.URL + "/api/island/info", "POST", JsonConvert.SerializeObject(islandbody), CreateHeaders()); + string response = await myWeb.SendRequest(myWeb.URL + "/api/island/submit", "POST", JsonConvert.SerializeObject(islandbody), CreateHeaders()); Debug.Log("岛主竞拍" + response); IslandResponse Island = JsonConvert.DeserializeObject(response); //Debug.Log(teamInfo.Data.Info.Nickname);