十绝阵当我的排名为0 时报错

dev_chengFeng
jiaoyangna 2021-07-29 16:10:39 +08:00
parent 706ee26390
commit 52e9f406aa
1 changed files with 4 additions and 4 deletions

View File

@ -276,8 +276,8 @@ function this.RefreshRank(index)
this.SetRankDataShow(ranks,myRankInfo,curRankType)
this.scrollView:SetIndex(1)
--当我的排名没数据时
this.mRSortNum:SetActive(myRankInfo.rank~=-1)
if myRankInfo.rank==-1 then
this.mRSortNum:SetActive(myRankInfo.rank > 0)
if myRankInfo.rank < 1 then
this.mRName.text=Language[10036]
this.mRHurt.text=""
return
@ -332,8 +332,8 @@ function this.SetMyRank(data,curRankType)
end
--设置名次 isMy 是否是设置我的名次
function this.SetRankingNum(root,rank,isMy)
if rank==-1 then
-- body
if rank < 1 then
return
end
local sortNumTabs={}
for i = 1, 4 do