【用户协议】提交
parent
6c5d6a4be4
commit
c89826edc5
|
|
@ -333,28 +333,33 @@ function this.RequestProtos(userId)
|
||||||
this.ConfirmImg:SetActive(PlayerPrefs.GetInt("IHaveConfirmProtos") == 1)
|
this.ConfirmImg:SetActive(PlayerPrefs.GetInt("IHaveConfirmProtos") == 1)
|
||||||
UrlList[1] = ""
|
UrlList[1] = ""
|
||||||
UrlList[2] = ""
|
UrlList[2] = ""
|
||||||
networkMgr:SendGetHttp(LoginRoot_Url.."jl_loginserver/getAgreement?gamePack=com.jieling.server", function (str)
|
local PackageID = PackageManager.GetPackageID()
|
||||||
local json = require 'cjson'
|
local serverStr = ""
|
||||||
local data = json.decode(str)
|
if PackageID then
|
||||||
if data.parms then
|
serverStr = LoginRoot_Channel.. PackageID
|
||||||
UrlList[1] = data.parms.instructions
|
networkMgr:SendGetHttp(LoginRoot_Url.."jl_loginserver/getAgreement?gamePack="..serverStr, function (str)
|
||||||
UrlList[2] = data.parms.privacy
|
local json = require 'cjson'
|
||||||
Log("instructionsUrl:"..tostring(UrlList[1]).." privacyUrl:"..tostring(UrlList[2]))
|
local data = json.decode(str)
|
||||||
HaveConfirm = true
|
if data.parms then
|
||||||
else
|
UrlList[1] = data.parms.instructions
|
||||||
this.protos:SetActive(false)
|
UrlList[2] = data.parms.privacy
|
||||||
Log("用户和隐私协议地址为空")
|
Log("instructionsUrl:"..tostring(UrlList[1]).." privacyUrl:"..tostring(UrlList[2]))
|
||||||
HaveConfirm = false
|
HaveConfirm = true
|
||||||
return
|
else
|
||||||
end
|
this.protos:SetActive(false)
|
||||||
if UrlList[1] ~= "" and UrlList[2] ~="" then
|
Log("用户和隐私协议地址为空")
|
||||||
this.protos:SetActive(true)
|
HaveConfirm = false
|
||||||
HaveConfirm = true
|
return
|
||||||
else
|
end
|
||||||
this.protos:SetActive(false)
|
if UrlList[1] ~= "" and UrlList[2] ~="" then
|
||||||
HaveConfirm = false
|
this.protos:SetActive(true)
|
||||||
end
|
HaveConfirm = true
|
||||||
end, nil, nil, nil)
|
else
|
||||||
|
this.protos:SetActive(false)
|
||||||
|
HaveConfirm = false
|
||||||
|
end
|
||||||
|
end, nil, nil, nil)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面销毁时调用(用于子类重写)
|
--界面销毁时调用(用于子类重写)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue