添加容错
This commit is contained in:
parent
af6b0f744c
commit
874ecfd37b
@ -331,9 +331,11 @@ function BattleResultUI:refreshArenaGradingSpine(gradingId, isUp)
|
||||
|
||||
if self.arenaSpine then
|
||||
self.arenaSpine:playAnimComplete("vanish", false, false, function()
|
||||
self.arenaSpine:destroy()
|
||||
self.arenaSpine = nil
|
||||
self:refreshArenaGradingSpine(gradingId, isUp)
|
||||
if self.arenaSpine then
|
||||
self.arenaSpine:destroy()
|
||||
self.arenaSpine = nil
|
||||
self:refreshArenaGradingSpine(gradingId, isUp)
|
||||
end
|
||||
end)
|
||||
else
|
||||
SpineManager:loadUISpineWidgetAsync(DataManager.ArenaData:getGradingIconName(gradingId).."_spine", self.arenaSpineRoot, function(spineObject)
|
||||
|
||||
@ -317,13 +317,13 @@ end
|
||||
-- 获取阶段子任务id列表
|
||||
function FourteenDayData:getStageSubTaskIdsSort(stage)
|
||||
local taskMap = self:getTaskMap()
|
||||
local result = {}
|
||||
if taskMap[stage] == nil or taskMap[stage].task == nil then
|
||||
return nil
|
||||
return result
|
||||
end
|
||||
|
||||
local canGet = {}
|
||||
local unfinish = {}
|
||||
local result = {}
|
||||
for index, id in ipairs(taskMap[stage].task) do
|
||||
if self:isTaskFinish(id) then
|
||||
-- 已完成
|
||||
|
||||
@ -190,9 +190,11 @@ end
|
||||
-- 获取当前赛季最低段位积分
|
||||
function ArenaData:getSeasonGradingMinScore()
|
||||
local result = 0
|
||||
for id, data in pairs(self.cfgRank) do
|
||||
if result == 0 or result > data.score then
|
||||
result = data.score
|
||||
if self.cfgRank then
|
||||
for id, data in pairs(self.cfgRank) do
|
||||
if result == 0 or result > data.score then
|
||||
result = data.score
|
||||
end
|
||||
end
|
||||
end
|
||||
return result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user