【bug】修复老包报错
parent
4cac839360
commit
5eef06e043
|
@ -20,7 +20,13 @@ function ServerConfigManager.IsSettingActive(settingType)
|
|||
local s_versionCode = "Setting."..settingType..".versionCode"
|
||||
local isActive = ServerConfigManager.GetConfigInfo(s_isActive)
|
||||
if isActive and isActive == "1" then -- 激活
|
||||
return true
|
||||
if not AppConst.isSDK then
|
||||
return true
|
||||
end
|
||||
local vc = AndroidDeviceInfo.Instance:GetVersionCode()
|
||||
if vc >= tonumber(ServerConfigManager.GetConfigInfo(s_versionCode)) then --符合包版本
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
|
|
@ -47,7 +47,7 @@ function SettingInfo:InitComponent(gameObject, rootPanel)
|
|||
this.dropDownTip = Util.GetGameObject(gameObject,"other/box1/tip")
|
||||
else
|
||||
this.dropDown = Util.GetGameObject(gameObject,"other/box1/Dropdown")
|
||||
this.dropDown.parent.gameObject:SetActive(false)
|
||||
this.dropDown.transform.parent.gameObject:SetActive(false)
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue