排行榜数据接入
This commit is contained in:
parent
00e88c5d0f
commit
0f5905ff20
@ -48,7 +48,7 @@ TextureImporter:
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteBorder: {x: 53, y: 31, z: 102, w: 32}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 1
|
||||
@ -120,7 +120,7 @@ TextureImporter:
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
internalID: 1537655665
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -311,7 +311,7 @@ public class AllHouseContro : MonoBehaviour
|
||||
warnPanel.HidePanel();
|
||||
|
||||
response = await web.SendRequest(web.URL + "/snail/gameEscape/queryKill", "POST", JsonUtility.ToJson(body), Global.global.CreateHeaders());
|
||||
//Debug.Log("5.1.4: " + response);
|
||||
Debug.Log("5.1.4: " + response);
|
||||
ServerResponse514 serverResponse_514 = JsonConvert.DeserializeObject<ServerResponse514>(response);
|
||||
|
||||
string[] parts = serverResponse_514.data.roomNoKill.Split(","); // 根据 ',' 分割字符串d
|
||||
@ -446,12 +446,13 @@ public class AllHouseContro : MonoBehaviour
|
||||
{
|
||||
Body518 body = new Body518();
|
||||
body.userId = Global.global.serverResponse.data.userId;
|
||||
body.weekType = 1;
|
||||
body.dayType = 1;
|
||||
string response = await web.SendRequest(web.URL + "/snail/gameEscape/queryUserBetRankByDay", "POST", JsonUtility.ToJson(body), Global.global.CreateHeaders());
|
||||
Debug.Log("5.1.8: 请求参数:"+ JsonUtility.ToJson(body)+"服务端返回"+ response);
|
||||
ServerResponse518 serverResponse_518 = JsonConvert.DeserializeObject<ServerResponse518>(response);
|
||||
|
||||
//listPanel.CreateListItem(serverResponse_518.data.gameEscapeUserBetResponseVoLists, listPanel.CreateParentToDay);
|
||||
Debug.Log("列表ss:"+ serverResponse_518.data.gameEscapeUserBetResponseVoList[0]);
|
||||
//Debug.Log("列表ss:" + serverResponse_518.data.userBetInfo);
|
||||
listPanel.CreateListItem(serverResponse_518.data.gameEscapeUserBetResponseVoList, listPanel.CreateParentToDay);
|
||||
//listPanel.SetSelfList(serverResponse_518.data.userBetInfo);
|
||||
|
||||
|
||||
|
@ -264,7 +264,7 @@ public class OtherMove : MonoBehaviour
|
||||
|
||||
//Debug.Log("启动其他蜗牛移动");
|
||||
// 提取路径中的所有点的位置
|
||||
Debug.Log("·¾¶³¤¶È" + pathPoints.Length);
|
||||
//Debug.Log("·¾¶³¤¶È" + pathPoints.Length);
|
||||
for (int i = 0; i < pathPoints.Length; i++)
|
||||
{
|
||||
//Debug.Log("其他蜗判断终点");
|
||||
|
@ -9,7 +9,7 @@ public class PlayerInfo : MonoBehaviour
|
||||
public static PlayerInfo instance;
|
||||
public static UserInfomation14 userInfomation14;
|
||||
public float Money = 0;
|
||||
public float Ichor= 0;
|
||||
public string Ichor;
|
||||
public float AllBetCoins;//总共下注蛋
|
||||
public TextMeshProUGUI SelfWoniuText;//蜗牛下注显示文本
|
||||
public bool HaveBet;//是否已经下注过
|
||||
|
@ -107,7 +107,7 @@ public class ListPanel : BasePanel
|
||||
// 设置实例化对象的内容
|
||||
panelComponent.list=item.orderNo;
|
||||
panelComponent.nameText.text=item.nickName;
|
||||
panelComponent.nameText.text = item.bet.ToString();
|
||||
panelComponent.numText.text = item.bet.ToString();
|
||||
|
||||
|
||||
|
||||
@ -141,7 +141,7 @@ public class ListPanel : BasePanel
|
||||
|
||||
public void SetSelfList(userBetInfo info)
|
||||
{
|
||||
SelfList.list=info.orderNo;
|
||||
SelfList.listText.text=info.orderNo;
|
||||
SelfList.nameText.text=info.nickName;
|
||||
SelfList.numText.text=info.bet.ToString();
|
||||
SelfList.headPath = info.headImg;
|
||||
|
@ -173,7 +173,7 @@ public class UserInfomation14Data
|
||||
public string birthday;//出生,"yyyy-MM-dd HH:mm:ss"
|
||||
public float voluteCoin;//蜗壳
|
||||
public float beansCoin;//蜗蛋
|
||||
public float ichorCoin;//灵液
|
||||
public string ichorCoin;//灵液
|
||||
public string idCard;//=========================
|
||||
public string inviteCodeMy;//=============
|
||||
public string inviteCodeBind;//==========
|
||||
@ -268,7 +268,7 @@ public class ServerResponse518 : Response
|
||||
[Serializable]
|
||||
public class Data518
|
||||
{
|
||||
public List<gameEscapeUserBetResponseVoList> gameEscapeUserBetResponseVoLists;
|
||||
public List<gameEscapeUserBetResponseVoList> gameEscapeUserBetResponseVoList;
|
||||
public userBetInfo userBetInfo;
|
||||
|
||||
|
||||
@ -283,7 +283,7 @@ public class gameEscapeUserBetResponseVoList
|
||||
public string headImg;// 头像
|
||||
public float bet;// 下注总额
|
||||
public int orderNo;// 排名
|
||||
public float rankBonus;// 排名奖金
|
||||
//public float rankBonus;// 排名奖金
|
||||
|
||||
|
||||
}
|
||||
@ -294,9 +294,15 @@ public class userBetInfo
|
||||
public string userId;//用户id
|
||||
public string nickName;// 昵称
|
||||
public string headImg;// 头像
|
||||
public float bet;// 下注总额
|
||||
public int orderNo;// 排名
|
||||
public float rankBonus;// 排名奖金
|
||||
private float? _bet; // 用于存储下注总额的私有字段
|
||||
|
||||
public float? bet
|
||||
{
|
||||
get { return _bet; } // 返回私有字段 _bet
|
||||
set { _bet = value ?? 0f; } // 如果 value 为 null,设置为 0f
|
||||
}
|
||||
public string orderNo;// 排名
|
||||
//public float rankBonus;// 排名奖金
|
||||
|
||||
|
||||
|
||||
@ -307,7 +313,7 @@ public class Body518
|
||||
{
|
||||
public int userId; // 用户id
|
||||
|
||||
public int weekType;//1是昨天,0是今天
|
||||
public int dayType;//1是昨天,0是今天
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user