"info" exception 修复

dev_chengFeng
ZhangBiao 2020-07-29 14:37:12 +08:00
parent a2635081af
commit c03e9336bc
1 changed files with 3 additions and 2 deletions

View File

@ -1303,8 +1303,9 @@ function this.TimeFormat()
end
--轮转活动,乾坤宝盒
local info= ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FindFairy)
if info then
local dynamicAct = not not ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FindFairy)
if dynamicAct then
local info = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FindFairy)
info = info.endTime - PlayerManager.serverTime
info = math.floor(info/86400)
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FindFairy) then