【bug】修复合成时log信息导致的报错

dev_chengFeng
gaoxin 2021-02-26 10:13:27 +08:00
parent 584431db2e
commit edec649f64
1 changed files with 8 additions and 8 deletions

View File

@ -25,39 +25,39 @@ end
function this.GetSevenDayCarnivalRedPoint() function this.GetSevenDayCarnivalRedPoint()
local redPoint = false local redPoint = false
local isActivityOpen = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SevenDayCarnival) local isActivityOpen = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SevenDayCarnival)
LogGreen("开服狂欢红点判断 isActivityOpen "..tostring(isActivityOpen)) --LogGreen("开服狂欢红点判断 isActivityOpen "..tostring(isActivityOpen))
if isActivityOpen then if isActivityOpen then
local activityInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SevenDayCarnival) local activityInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SevenDayCarnival)
local timeDown = activityInfo.endTime - GetTimeStamp() local timeDown = activityInfo.endTime - GetTimeStamp()
LogGreen("开服狂欢红点判断 timeDown "..timeDown) --LogGreen("开服狂欢红点判断 timeDown "..timeDown)
if timeDown > 0 then-- - 86400 if timeDown > 0 then-- - 86400
local taskList = TaskManager.GetTypeTaskList(TaskTypeDef.SevenDayCarnival) local taskList = TaskManager.GetTypeTaskList(TaskTypeDef.SevenDayCarnival)
table.walk(taskList, function(taskInfo) table.walk(taskList, function(taskInfo)
local treasureTaskConfig = ConfigManager.GetConfigData(ConfigName.TreasureTaskConfig, taskInfo.missionId) local treasureTaskConfig = ConfigManager.GetConfigData(ConfigName.TreasureTaskConfig, taskInfo.missionId)
LogGreen("开服狂欢红点判断 this.GetCurrentDayNumber() "..this.GetCurrentDayNumber()) --LogGreen("开服狂欢红点判断 this.GetCurrentDayNumber() "..this.GetCurrentDayNumber())
if this.GetCurrentDayNumber() >= treasureTaskConfig.DayNum then if this.GetCurrentDayNumber() >= treasureTaskConfig.DayNum then
redPoint = redPoint or (taskInfo.state == VipTaskStatusDef.CanReceive) redPoint = redPoint or (taskInfo.state == VipTaskStatusDef.CanReceive)
end end
end) end)
LogGreen("开服狂欢红点判断 this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber() "..tostring(this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber()))) --LogGreen("开服狂欢红点判断 this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber() "..tostring(this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber())))
redPoint = redPoint or this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber()) redPoint = redPoint or this.GetSevenDayHalfPriceRedPoint(this.GetCurrentDayNumber())
end end
LogGreen("开服狂欢红点判断 this.GetBoxRedPointStatus() "..tostring(this.GetBoxRedPointStatus())) --LogGreen("开服狂欢红点判断 this.GetBoxRedPointStatus() "..tostring(this.GetBoxRedPointStatus()))
redPoint = redPoint or this.GetBoxRedPointStatus() redPoint = redPoint or this.GetBoxRedPointStatus()
end end
if not redPoint then if not redPoint then
local curDayIndex = SevenDayCarnivalManager.GetCurrentDayNumber() local curDayIndex = SevenDayCarnivalManager.GetCurrentDayNumber()
if curDayIndex and curDayIndex > 0 then if curDayIndex and curDayIndex > 0 then
LogGreen("开服狂欢红点判断 curDayIndex "..curDayIndex) --LogGreen("开服狂欢红点判断 curDayIndex "..curDayIndex)
for i = 1, curDayIndex do for i = 1, curDayIndex do
LogGreen("开服狂欢红点判断 i this.GetSevenDayCarnivalRedPoint2(i) "..i.." "..this.GetSevenDayCarnivalRedPoint2(i)) --LogGreen("开服狂欢红点判断 i this.GetSevenDayCarnivalRedPoint2(i) "..i.." "..this.GetSevenDayCarnivalRedPoint2(i))
if this.GetSevenDayCarnivalRedPoint2(i) then if this.GetSevenDayCarnivalRedPoint2(i) then
redPoint = true redPoint = true
end end
end end
end end
end end
LogGreen("开服狂欢红点判断 end "..tostring(redPoint)) --LogGreen("开服狂欢红点判断 end "..tostring(redPoint))
return redPoint return redPoint
end end
--添加另一组半价数据红点状态 --添加另一组半价数据红点状态