bug修复
This commit is contained in:
parent
f3d7d1c892
commit
408bd933c6
@ -334,6 +334,7 @@ function ActBossRushData:updateRankInfo(info)
|
||||
self.selfRank = info.today_self
|
||||
|
||||
self.needUpdateRank = Time:getServerTime()
|
||||
self:setDirty()
|
||||
end
|
||||
|
||||
function ActBossRushData:updateTopRankInfo(info)
|
||||
@ -363,6 +364,12 @@ function ActBossRushData:getCurRankSelfInfo()
|
||||
end
|
||||
|
||||
function ActBossRushData:canGetRankReward()
|
||||
if not self.todayRankRerwardGot then
|
||||
if (not self.lastSelfRank or not self.lastSelfRank.rank) and not self:getIsFirstDay() then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
if not self.lastSelfRank or not self.lastSelfRank.rank or self.lastSelfRank.rank <= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user