修改添加接口

This commit is contained in:
YangHua 2023-11-21 11:40:44 +08:00
parent bae09e0de0
commit c055e2a0bf
1 changed files with 3 additions and 3 deletions

View File

@ -91,10 +91,10 @@ public class EquipmentCommon : MonoBehaviour
if (equipmentCommon)
{
string paraListJson = JsonMapper.ToJson(weaponitemone);
ReturnDeviceID returnID = await AsyncWebReq.Post<ReturnDeviceID>("http://111.229.30.246:48888/Handler/Thinkingfile.ashx?action=querypracticedevicedetail&PracticeId=" + GlobalFlag.roomID + "&PracticeSubjectId=" + GlobalFlag.practiceSubjectID + "&device_name=" + equipmentCommon.equipmentType + "&para_list=" + paraListJson, null);
ReturnDeviceID returnID = await AsyncWebReq.Post<ReturnDeviceID>("http://111.229.30.246:48888/Handler/Thinkingfile.ashx?action=addpracticedevicedetail&PracticeId=" + GlobalFlag.roomID + "&PracticeSubjectId=" + GlobalFlag.practiceSubjectID + "&device_name=" + equipmentCommon.equipmentType + "&para_list=" + paraListJson, null);
string msg = $"send2room {equipmentCommon.equipmentType}+{transform.position.ToString().Replace(" ", "").Replace("(", "").Replace(")", "")}+{transform.eulerAngles.ToString().Replace(" ", "").Replace("(", "").Replace(")", "") + "," + returnID}";
Debug.Log(returnID.message);
string msg = $"send2room {equipmentCommon.equipmentType}+{transform.position.ToString().Replace(" ", "").Replace("(", "").Replace(")", "")}+{transform.eulerAngles.ToString().Replace(" ", "").Replace("(", "").Replace(")", "") + "," + returnID.data}";
Debug.Log(returnID.data);
_ = SyncCreateRoom.SendMessageAsync(msg);
}
switch (equipmentType)