脚本调整,处理下载页面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
@@ -87,7 +87,7 @@
}
function androidLoad() {
// window.open('https://a.app.qq.com/o/simple.jsp?pkgname=com.sw.healthyclients');
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
fetch(window['downUrl']+`/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
.then(response => {
if (!response.ok) {
throw new Error('网络响应不正常');
@@ -96,7 +96,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('网络异常');
}