diff --git a/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs b/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs index 6dfd8c75..01b01623 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/DatePanel.cs @@ -20,7 +20,7 @@ public class DatePanel : MonoBehaviour public Text submitText; public Text inputText; public Text dataText; - public int placeId; + public string placeId; public Panel panel; public createTemplateInterface createTemplateInterface=new createTemplateInterface(); // Start is called before the first frame update @@ -48,7 +48,7 @@ public class DatePanel : MonoBehaviour //提交按钮 public void OnClickSubmitPanel() { - createTemplateInfo.Instance.auth_CreateTemplate.subjectId = placeId.ToString(); + createTemplateInfo.Instance.auth_CreateTemplate.sceneId = placeId; if(preservationToggle.isOn) { createTemplateInfo.Instance.auth_CreateTemplate.isTemplate = "0"; diff --git a/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs b/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs index e26c3e51..1b3f2015 100644 --- a/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs +++ b/xiaofang/Assets/Script/UI/PanelUI/SelectScenePanel.cs @@ -214,7 +214,7 @@ public class SelectScenePanel : Base { this.idcidentName = item.incidentText.text; this.idcidentId = item.incidentID; - datePanel.placeId = item.incidentID; + datePanel.placeId = item.incidentID.ToString(); string[] difficulty = eventData.Value.Difficulty.Split('|'); string[] roleGroups = eventData.Value.Role.Split('|'); // 分割Role字段,得到多个角色组 @@ -324,9 +324,8 @@ public class SelectScenePanel : Base InstantiateIncidentPrefab(int.Parse(disasterLocation)); OnRandomEventClick(); } - // 设置模板信息 - createTemplateInfo.Instance.auth_CreateTemplate.sceneId = item.eventId.ToString(); + createTemplateInfo.Instance.auth_CreateTemplate.subjectId = item.eventId.ToString(); } }); if (toggle.isOn) @@ -417,7 +416,6 @@ public class SelectScenePanel : Base } } } - //继续按钮,点击后上传数据 public void OnClickContinueBtn() { diff --git a/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs b/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs index ebce2b2a..e0fcea98 100644 --- a/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs +++ b/xiaofang/Assets/yhj/scripts/JueseChoicePop.cs @@ -98,8 +98,6 @@ public class JueseChoicePop : MonoBehaviour classMate.isBeSet = true; classItem.isSet = true; this.classMate = classMate; - //classItem.setClassItem(classMate.classmatename.text); - //s = classMate.classmatename.text; this.classMate.classmatename.text = classMate.classmatename.text + "(" + classItem.classname.text + ")"; } }