2024-12-13 16:41:55 +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 16:41:55 +08:00
|
|
|
|
using System.Threading.Tasks;
|
2024-12-12 17:18:16 +08:00
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
2024-12-13 16:41:55 +08:00
|
|
|
|
public class MotherFuck533 : Base
|
2024-12-12 17:18:16 +08:00
|
|
|
|
{
|
2024-12-13 16:41:55 +08:00
|
|
|
|
public async Task<bool> Result(int id) //
|
2024-12-12 17:18:16 +08:00
|
|
|
|
{
|
2024-12-13 16:41:55 +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>
|
|
|
|
|
QueryLottery533Body Body = new QueryLottery533Body
|
|
|
|
|
{
|
|
|
|
|
lotteryUserId = id
|
|
|
|
|
};
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|
2024-12-13 16:41:55 +08:00
|
|
|
|
|
|
|
|
|
// <20>첽<EFBFBD><ECB2BD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
string response118 = await web.SendRequest(web.URL + "/snail/gameLottery/lotteryOpen", "POST", JsonConvert.SerializeObject(Body), head118);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD>Ӧ
|
|
|
|
|
Debug.Log("5.3.3<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>
|
|
|
|
|
Lottery533 directlist = JsonConvert.DeserializeObject<Lottery533>(response118);
|
|
|
|
|
|
|
|
|
|
addEventPopUp(directlist.message);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD>鷴<EFBFBD><E9B7B4><EFBFBD>л<EFBFBD><D0BB>Ƿ<EFBFBD><C7B7>ɹ<EFBFBD>
|
2024-12-13 19:37:33 +08:00
|
|
|
|
if (directlist.code==200)
|
2024-12-13 16:41:55 +08:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//Debug.Log(directlist.data.UserResponseVoList.Count);
|
2024-12-12 17:18:16 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-12-13 16:41:55 +08:00
|
|
|
|
|
|
|
|
|
public class Lottery533 : Response
|
|
|
|
|
{
|
|
|
|
|
public int code; // <20><>Ӧ״̬<D7B4><CCAC>
|
|
|
|
|
public string message; // <20><>ʾ<EFBFBD><CABE>
|
2024-12-13 19:37:33 +08:00
|
|
|
|
//public bool? data { get; set; }
|
2024-12-13 16:41:55 +08:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class QueryLottery533Body
|
|
|
|
|
{
|
|
|
|
|
public int lotteryUserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|