2024-12-11 12:03:02 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class MotherFuck118 : MonoBehaviour
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public async Task<Directlist> directlistResult() // 1.18
|
|
|
|
|
{
|
|
|
|
|
// <><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> head118 = new Dictionary<string, string>
|
|
|
|
|
{
|
|
|
|
|
{ "Authorization", Global.global.serverResponse.data.token }
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <20>첽<EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
string response118 = await web.SendRequest(web.URL + "/snail/data/queryActiveUser", "GET", "{}", head118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
|
|
|
|
|
Debug.Log("1.18<EFBFBD><EFBFBD>ѯ<EFBFBD><EFBFBD>ҳֱ<EFBFBD>ư<EFBFBD> =====================" + response118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD>Ϊ KnightRoomList <20><><EFBFBD><EFBFBD>
|
|
|
|
|
Directlist directlist = JsonConvert.DeserializeObject<Directlist>(response118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD>鷴<EFBFBD><E9B7B4><EFBFBD>л<EFBFBD><D0BB>Ƿ<EFBFBD><C7B7>ɹ<EFBFBD>
|
|
|
|
|
if (directlist != null && directlist.data != null)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//Debug.Log("<22><>ȡ<EFBFBD>ɹ<EFBFBD>");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Debug.LogError("directlist <20><><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>");
|
|
|
|
|
}
|
2024-12-11 16:57:42 +08:00
|
|
|
|
//Debug.Log(directlist.data.UserResponseVoList.Count);
|
2024-12-11 12:03:02 +08:00
|
|
|
|
return directlist;
|
|
|
|
|
}
|
|
|
|
|
}
|