数据传输修改

This commit is contained in:
lq 2024-12-23 17:19:50 +08:00
parent 31d185d6a5
commit d227ee41b5
3 changed files with 4 additions and 8 deletions

View File

@ -20,7 +20,7 @@ public class DatePanel : MonoBehaviour
public Text submitText; public Text submitText;
public Text inputText; public Text inputText;
public Text dataText; public Text dataText;
public int placeId; public string placeId;
public Panel panel; public Panel panel;
public createTemplateInterface createTemplateInterface=new createTemplateInterface(); public createTemplateInterface createTemplateInterface=new createTemplateInterface();
// Start is called before the first frame update // Start is called before the first frame update
@ -48,7 +48,7 @@ public class DatePanel : MonoBehaviour
//Ìá½»°´Å¥ //Ìá½»°´Å¥
public void OnClickSubmitPanel() public void OnClickSubmitPanel()
{ {
createTemplateInfo.Instance.auth_CreateTemplate.subjectId = placeId.ToString(); createTemplateInfo.Instance.auth_CreateTemplate.sceneId = placeId;
if(preservationToggle.isOn) if(preservationToggle.isOn)
{ {
createTemplateInfo.Instance.auth_CreateTemplate.isTemplate = "0"; createTemplateInfo.Instance.auth_CreateTemplate.isTemplate = "0";

View File

@ -214,7 +214,7 @@ public class SelectScenePanel : Base
{ {
this.idcidentName = item.incidentText.text; this.idcidentName = item.incidentText.text;
this.idcidentId = item.incidentID; this.idcidentId = item.incidentID;
datePanel.placeId = item.incidentID; datePanel.placeId = item.incidentID.ToString();
string[] difficulty = eventData.Value.Difficulty.Split('|'); string[] difficulty = eventData.Value.Difficulty.Split('|');
string[] roleGroups = eventData.Value.Role.Split('|'); // 分割Role字段得到多个角色组 string[] roleGroups = eventData.Value.Role.Split('|'); // 分割Role字段得到多个角色组
@ -324,9 +324,8 @@ public class SelectScenePanel : Base
InstantiateIncidentPrefab(int.Parse(disasterLocation)); InstantiateIncidentPrefab(int.Parse(disasterLocation));
OnRandomEventClick(); OnRandomEventClick();
} }
// 设置模板信息 // 设置模板信息
createTemplateInfo.Instance.auth_CreateTemplate.sceneId = item.eventId.ToString(); createTemplateInfo.Instance.auth_CreateTemplate.subjectId = item.eventId.ToString();
} }
}); });
if (toggle.isOn) if (toggle.isOn)
@ -417,7 +416,6 @@ public class SelectScenePanel : Base
} }
} }
} }
//继续按钮,点击后上传数据 //继续按钮,点击后上传数据
public void OnClickContinueBtn() public void OnClickContinueBtn()
{ {

View File

@ -98,8 +98,6 @@ public class JueseChoicePop : MonoBehaviour
classMate.isBeSet = true; classMate.isBeSet = true;
classItem.isSet = true; classItem.isSet = true;
this.classMate = classMate; this.classMate = classMate;
//classItem.setClassItem(classMate.classmatename.text);
//s = classMate.classmatename.text;
this.classMate.classmatename.text = classMate.classmatename.text + "(" + classItem.classname.text + ")"; this.classMate.classmatename.text = classMate.classmatename.text + "(" + classItem.classname.text + ")";
} }
} }