脚本调整,处理下载页面html的apiurl问题,开发环境暂时未处理

This commit is contained in:
2025-11-05 17:46:03 +08:00
parent 6125c6fc87
commit 66a0c2f4d6
4 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -85,7 +85,7 @@
}
}
function androidLoad() {
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
fetch(window['downUrl']+`/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
.then(response => {
if (!response.ok) {
throw new Error('网络响应不正常');
@@ -94,7 +94,7 @@
})
.then(data => {
if (data.code === 200) {
window.open(`https://api-jkglpt.iosp.ydpt.tech/file/down/${data.result.appUrl}`)
window.open(window['downUrl']+`/file/down/${data.result.appUrl}`)
} else {
window.alert('网络异常');
}