22 lines
621 B
Plaintext
22 lines
621 B
Plaintext
XDCDNInfo = {}
|
|
|
|
local FILE_SERVER_URL_S = 'http://xxxxxxxx'
|
|
local FILE_SERVER_URL = 'http://xxxxxxxx'
|
|
|
|
function XDCDNInfo.GetFileServerURL()
|
|
-- local url = FILE_SERVER_URL_S
|
|
-- local runtimePlatform = ApplicationInfo.GetRunPlatform()
|
|
-- if runtimePlatform == RuntimePlatform.Android or runtimePlatform == RuntimePlatform.WindowsEditor then
|
|
-- url = FILE_SERVER_URL
|
|
-- end
|
|
-- return url
|
|
local url = FILE_SERVER_URL_S
|
|
local json = EnvChannel.GetHttpOperationJson()
|
|
LogUtility.InfoFormat("XDCDNInfo.GetFileServerURL json:{0}",json)
|
|
if(json) then
|
|
url = json["fileServerUrl"]
|
|
return url
|
|
end
|
|
return url
|
|
end
|