2024-11-27 15:54:29 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class newAddress81 : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
//<2F><><EFBFBD>صģ<D8B5><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
public newAddressResponse newAddressResponse;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//public async Task<KnightBetResult> queryKnightBetResult(int KnightId) // 5.2.2//<2F>贫<EFBFBD><E8B4AB>KightId
|
2024-11-27 19:02:29 +08:00
|
|
|
|
public async Task<newAddressResponse> newAddress(string receiveName, string receivePhone,string area, string address)
|
2024-11-27 15:54:29 +08:00
|
|
|
|
{
|
|
|
|
|
// <><D7BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͷ<EFBFBD><CDB7><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD>
|
|
|
|
|
Dictionary<string, string> head81 = new Dictionary<string, string>
|
|
|
|
|
{
|
|
|
|
|
{ "Authorization", Global.global.serverResponse.data.token }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
newAddressBody newAddressBody = new newAddressBody
|
|
|
|
|
{
|
|
|
|
|
receivePhone = receivePhone,
|
|
|
|
|
area = area,
|
|
|
|
|
address = address,
|
|
|
|
|
receiveName = receiveName,
|
|
|
|
|
};
|
|
|
|
|
//Debug.Log("8.1=====<3D><><EFBFBD><EFBFBD>======"+ JsonConvert.SerializeObject(newAddressBody));
|
|
|
|
|
// <20>첽<EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
//string response525 = await web.SendRequest(web.URL + "/snail/gameKnight/queryUserBetResult", "POST", JsonUtility.ToJson(queryKnightRoomListBody), head525);
|
|
|
|
|
|
|
|
|
|
string response81 = await web.SendRequest(web.URL + "/snail/area/save", "POST", JsonConvert.SerializeObject(newAddressBody), head81);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
|
|
|
|
|
Debug.Log("8.1<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ:======== " + response81);
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD>Ϊ KnightRoomList <20><><EFBFBD><EFBFBD>
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
newAddressResponse = JsonConvert.DeserializeObject<newAddressResponse>(response81);
|
|
|
|
|
//Debug.Log(newAddressResponse.data+"");
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
Debug.LogError("<22><><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD>Ӧʧ<D3A6><CAA7>: " + ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD>ؽ<EFBFBD><D8BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
return newAddressResponse;
|
|
|
|
|
}
|
|
|
|
|
}
|