【神将】加入版本控制时间计算错误修改

gaoxin 2022-02-24 16:50:36 +08:00
parent bfbc3b7195
commit 0933331d4a
1 changed files with 1 additions and 1 deletions

View File

@ -4272,7 +4272,7 @@ function this.InVersion(heroTid)
return
end
local serverOpenTime = PlayerManager.GetServerOpenTime()
local openDay = math.max(0, GetTimeStamp() - serverOpenTime)/(60*60*24)--当前是开服第几天
local openDay = math.ceil(math.max(0, GetTimeStamp() - serverOpenTime)/(60*60*24))--当前是开服第几天
if openDay >= con.Version then
return true
end