2024-12-13 15:35:22 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
2024-12-12 17:18:16 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
2024-12-13 15:35:22 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2024-12-12 17:18:16 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
public class MotherFuck532 : MonoBehaviour
|
|
|
|
|
{
|
2024-12-13 15:35:22 +08:00
|
|
|
|
public async Task<Lottery532> Result() //
|
2024-12-12 17:18:16 +08:00
|
|
|
|
{
|
2024-12-13 15:35:22 +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> head118 = new Dictionary<string, string>
|
|
|
|
|
{
|
|
|
|
|
{ "Authorization", Global.global.serverResponse.data.token }
|
|
|
|
|
};
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
QueryLottery532Body Body = new QueryLottery532Body
|
|
|
|
|
{
|
|
|
|
|
userId = Global.global.serverResponse.data.userId
|
|
|
|
|
};
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|
2024-12-13 15:35:22 +08:00
|
|
|
|
|
|
|
|
|
// <20>첽<EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
string response118 = await web.SendRequest(web.URL + "/snail/gameLottery/queryLotteryUserList", "POST", JsonConvert.SerializeObject(Body), head118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
|
|
|
|
|
Debug.Log("5.3.2<EFBFBD><EFBFBD>ѯ<EFBFBD>û<EFBFBD><EFBFBD>µ<EFBFBD>ҡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> =====================" + "<22><><EFBFBD><EFBFBD><EFBFBD>壺" + JsonConvert.SerializeObject(Body) + "||<7C><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>" + response118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD>Ϊ KnightRoomList <20><><EFBFBD><EFBFBD>
|
|
|
|
|
Lottery532 directlist = JsonConvert.DeserializeObject<Lottery532>(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>");
|
|
|
|
|
}
|
|
|
|
|
//Debug.Log(directlist.data.UserResponseVoList.Count);
|
|
|
|
|
return directlist;
|
2024-12-12 17:18:16 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
2024-12-13 15:35:22 +08:00
|
|
|
|
public class QueryLottery532Body
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Lottery532 : Response
|
|
|
|
|
{
|
2024-12-13 19:37:33 +08:00
|
|
|
|
public List<Lottery532Data> data { get; set; }
|
2024-12-13 15:35:22 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class Lottery532Data
|
|
|
|
|
{
|
2024-12-13 19:37:33 +08:00
|
|
|
|
public int id { get; set; }
|
|
|
|
|
public int lotteryId { get; set; }
|
|
|
|
|
public int source { get; set; }
|
|
|
|
|
public int userId { get; set; }
|
|
|
|
|
public int status { get; set; }
|
|
|
|
|
public double beansCoinOpen { get; set; }
|
|
|
|
|
public double beansCoinReward { get; set; }
|
|
|
|
|
public int type { get; set; }
|
|
|
|
|
public int snailId { get; set; }
|
|
|
|
|
public int slotId { get; set; }
|
|
|
|
|
public DateTime createTime { get; set; }
|
|
|
|
|
public DateTime updateTime { get; set; }
|
2024-12-13 15:35:22 +08:00
|
|
|
|
|
|
|
|
|
}
|