_TheStrongestSnail/TheStrongestSnail/Assets/Scripts/InviteSystem6/getInviteList62.cs

37 lines
1.1 KiB
C#
Raw Normal View History

using Newtonsoft.Json;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Threading.Tasks;
using UnityEngine;
//6.2ȡ<EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD><EFBFBD><EFBFBD>
public class getInviteList62 : MonoBehaviour
{
public InviteInfoList inviteInfoList;
public async Task<InviteInfoList> queryInviteHigherInfo()
{
Dictionary<string, string> head62 = new Dictionary<string, string>
{
{ "Authorization", Global.global.serverResponse.data.token }
};
// <20><EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
string response62 = await web.SendRequest(web.URL + "/snail/invite/queryMyInvitePage", "POST", "{}", head62);
Debug.Log("6.2<EFBFBD><EFBFBD>ȡ<EFBFBD>ҵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>:=============== " + response62);
try
{
inviteInfoList = JsonConvert.DeserializeObject<InviteInfoList>(response62);
Debug.Log("+++++++++++++++"+ inviteInfoList.data.dataList[0].bindTime);
}
catch (Exception ex)
{
Debug.LogError("<22><><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><D0BB><EFBFBD>Ӧʧ<D3A6><CAA7>: " + ex.Message);
}
return inviteInfoList;
}
}