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