diff --git a/Assets/ManagedResources/~Lua/Modules/SevenDayCarnival/SevenDayCarnivalManager.lua b/Assets/ManagedResources/~Lua/Modules/SevenDayCarnival/SevenDayCarnivalManager.lua index c60eccc62f..480ee7cd17 100644 --- a/Assets/ManagedResources/~Lua/Modules/SevenDayCarnival/SevenDayCarnivalManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/SevenDayCarnival/SevenDayCarnivalManager.lua @@ -25,39 +25,39 @@ end function this.GetSevenDayCarnivalRedPoint() local redPoint = false local isActivityOpen = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SevenDayCarnival) - LogGreen("开服狂欢红点判断 isActivityOpen "..tostring(isActivityOpen)) + --LogGreen("开服狂欢红点判断 isActivityOpen "..tostring(isActivityOpen)) if isActivityOpen then local activityInfo = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.SevenDayCarnival) local timeDown = activityInfo.endTime - GetTimeStamp() - LogGreen("开服狂欢红点判断 timeDown "..timeDown) + --LogGreen("开服狂欢红点判断 timeDown "..timeDown) if timeDown > 0 then-- - 86400 local taskList = TaskManager.GetTypeTaskList(TaskTypeDef.SevenDayCarnival) table.walk(taskList, function(taskInfo) local treasureTaskConfig = ConfigManager.GetConfigData(ConfigName.TreasureTaskConfig, taskInfo.missionId) - LogGreen("开服狂欢红点判断 this.GetCurrentDayNumber() "..this.GetCurrentDayNumber()) + --LogGreen("开服狂欢红点判断 this.GetCurrentDayNumber() "..this.GetCurrentDayNumber()) if this.GetCurrentDayNumber() >= treasureTaskConfig.DayNum then redPoint = redPoint or (taskInfo.state == VipTaskStatusDef.CanReceive) 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()) end - LogGreen("开服狂欢红点判断 this.GetBoxRedPointStatus() "..tostring(this.GetBoxRedPointStatus())) + --LogGreen("开服狂欢红点判断 this.GetBoxRedPointStatus() "..tostring(this.GetBoxRedPointStatus())) redPoint = redPoint or this.GetBoxRedPointStatus() end if not redPoint then local curDayIndex = SevenDayCarnivalManager.GetCurrentDayNumber() if curDayIndex and curDayIndex > 0 then - LogGreen("开服狂欢红点判断 curDayIndex "..curDayIndex) + --LogGreen("开服狂欢红点判断 curDayIndex "..curDayIndex) 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 redPoint = true end end end end - LogGreen("开服狂欢红点判断 end "..tostring(redPoint)) + --LogGreen("开服狂欢红点判断 end "..tostring(redPoint)) return redPoint end --添加另一组半价数据红点状态