【bug】修复老包报错

dev_chengFeng
JieLing 2021-03-08 22:33:04 +08:00
parent 4cac839360
commit 5eef06e043
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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