明望特权等级添加默认值
parent
aa86f127f4
commit
7523d9d667
|
|
@ -15,7 +15,7 @@ this.OpenUIList = {}
|
|||
this.selectIndex = {dataType = 0,goodsId = {}}
|
||||
this.selectIndex2 = {dataType = 0,goodsId = {}}
|
||||
this.NiuQiIndex = 1
|
||||
this.Index = 0--成长礼包需要的index
|
||||
this.Index = 1--成长礼包需要的index
|
||||
this.curLevel = 0--当前声望等级
|
||||
this.isopenJingjishilian = false
|
||||
this.TaiChuMiJuanData = {}
|
||||
|
|
@ -699,6 +699,11 @@ function this.IsQualifiled(id)
|
|||
qualifiled = playerLv >= openRule[2]
|
||||
elseif openRule[1] == 3 then -- 工坊等级开启
|
||||
qualifiled = WorkShopManager.WorkShopData.lv >= openRule[2]
|
||||
elseif openRule[1] == 4 then --根据开服时间
|
||||
local serverOpenTime = PlayerManager.GetServerOpenTime()
|
||||
local openDay = math.ceil(math.max(0, GetTimeStamp() - serverOpenTime)/(60*60*24))--当前是开服第几天
|
||||
-- LogError("当前是开服第几天了:"..openDay)
|
||||
return openDay >= v.OpenRules[2]
|
||||
end
|
||||
return qualifiled
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue