兑换红点修改

This commit is contained in:
Fang 2023-09-06 10:16:04 +08:00
parent 1f85dc4681
commit afd1cdbcf6

View File

@ -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()