数据传输修改

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 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";

View File

@ -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()
{

View File

@ -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 + ")";
}
}