兑换红点修改
This commit is contained in:
parent
1f85dc4681
commit
afd1cdbcf6
@ -460,22 +460,7 @@ end
|
|||||||
|
|
||||||
-- 是否有兑换红点
|
-- 是否有兑换红点
|
||||||
function FourteenDayData:hasExchangeRedPoint()
|
function FourteenDayData:hasExchangeRedPoint()
|
||||||
local isFullUnlock = true
|
|
||||||
for index, data in ipairs(self:getExchangeShowIdsSort()) do
|
|
||||||
if not self:isExchangeUnlock(data.id) then
|
|
||||||
isFullUnlock = false
|
|
||||||
break
|
|
||||||
end
|
|
||||||
end
|
|
||||||
if not isFullUnlock then
|
|
||||||
return not self:getTodayExchangeCheck()
|
return not self:getTodayExchangeCheck()
|
||||||
else
|
|
||||||
for index, data in ipairs(self:getExchangeShowIdsSort()) do
|
|
||||||
if self:canExchange(data.id) then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function FourteenDayData:getTodayExchangeCheck()
|
function FourteenDayData:getTodayExchangeCheck()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user