2024-12-12 17:18:16 +08:00
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class MotherFuck531 : MonoBehaviour
|
|
|
|
|
{
|
2024-12-12 18:00:29 +08:00
|
|
|
|
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public async Task<Lottery531> Result(int id) //
|
|
|
|
|
{
|
|
|
|
|
// <><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>
|
|
|
|
|
QueryLottery531Body Body = new QueryLottery531Body
|
|
|
|
|
{
|
|
|
|
|
lotteryId = id
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <20>첽<EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
string response118 = await web.SendRequest(web.URL + "/snail/gameLottery/queryLotteryRewardList", "POST", JsonConvert.SerializeObject(Body), head118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
|
|
|
|
|
Debug.Log("5.3.1<EFBFBD><EFBFBD>ѯҡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD> =====================" + response118);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD>Ӧ<EFBFBD><D3A6><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD>Ϊ KnightRoomList <20><><EFBFBD><EFBFBD>
|
|
|
|
|
Lottery531 directlist = JsonConvert.DeserializeObject<Lottery531>(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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class QueryLottery531Body {
|
|
|
|
|
|
|
|
|
|
public int lotteryId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Lottery531 : Response
|
|
|
|
|
{
|
2024-12-12 18:00:29 +08:00
|
|
|
|
public List<Lottery531Data> data { get; set; }
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-12 18:00:29 +08:00
|
|
|
|
public class Lottery531Data {
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public int LotteryId { get; set; }
|
|
|
|
|
public int Type { get; set; }
|
|
|
|
|
public decimal BeansCoin { get; set; }
|
|
|
|
|
public int RateSurface { get; set; }
|
|
|
|
|
public int RateActual { get; set; }
|
|
|
|
|
public int Status { get; set; }
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
public DateTime UpdateTime { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|