_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/Union16/UnionPage16.cs

38 lines
1.2 KiB
C#
Raw Normal View History

using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
public class UnionPage16 : MonoBehaviour
{
UnionPage unionPage =new UnionPage();
public async Task<UnionPage> queryUnionPage(int orderByDesc) // 5.2.6
{
// ׼<><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> head16 = new Dictionary<string, string>
{
{ "Authorization", Global.global.serverResponse.data.token }
};
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
UnionPageBody unionPageBody = new UnionPageBody
{
//userId = Global.global.serverResponse.data.userId,
orderByDesc = orderByDesc
};
// <20><EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
string response16 = await web.SendRequest(web.URL + "/snail/union/queryPage", "POST", JsonUtility.ToJson(unionPageBody), head16);
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
Debug.Log("1.6<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҳ<EFBFBD><EFBFBD>" + response16);
// <20><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>
UnionPage unionPage = JsonConvert.DeserializeObject<UnionPage>(response16);
//Debug.Log("8==================================D"+unionPage.Data.DataList[0].LeaderUserName);
return unionPage;
}
}