停车场项目web, 互联网仓库, 开发完成后, 需要将代码回传云桌面.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
function getYSC () { const isInstance = createIS(); const ciphertext = 'M1JyMHpsbXpPMUlUQWVZUQ=='; const xhr = new XMLHttpRequest(); if (typeof yscUrl === 'undefined') { window.location.href = globalLoginUrl; return false; } xhr.open('get', yscUrl, false); xhr.send(null); if (xhr.status === 200) { const data = JSON.parse(xhr.responseText) if (data.status === 0) { const dataType = Object.prototype.toString.call(data.data); if (dataType === '[object String]') { window.YISACONF = isInstance.aesUtil.decrypt(data.data, atob(ciphertext)); } else { window.YISACONF = data.data; } }else if(data.status === 4){ window.location.href = data.jumpUrl }else { window.location.href = globalLoginUrl; } } else { window.location.href = globalLoginUrl; } }
getYSC();
|