1.修改app下载地址
This commit is contained in:
2025-11-05 15:30:46 +08:00
parent e629dc3fb0
commit 6125c6fc87
2 changed files with 4 additions and 32 deletions
+2 -16
View File
@@ -75,7 +75,6 @@
document.getElementById('text1').style.display = 'none';
document.getElementById('text').style.display = 'flex';
}
getTypeAPackage();
}
f();
function isType() {
@@ -88,7 +87,7 @@
}
function androidLoad() {
// window.open('https://a.app.qq.com/o/simple.jsp?pkgname=com.sw.healthyclients');
fetch(`https://api.xjygjk.com/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthexpertclient`)
.then(response => {
if (!response.ok) {
throw new Error('网络响应不正常');
@@ -96,9 +95,8 @@
return response.json();
})
.then(data => {
console.log(data);
if (data.code === 200) {
window.open(`https://api.xjygjk.com/file/down/${data.result.appUrl}`)
window.open(`https://api-jkglpt.iosp.ydpt.tech/file/down/${data.result.appUrl}`)
} else {
window.alert('网络异常');
}
@@ -121,16 +119,4 @@
androidLoad();
}
}
function getTypeAPackage() {
const url = window.location.href;
const arr = url.indexOf('?') !== -1 ? url.split('?')[1].replace('#/', '') : '';
let strArr = arr.split('&')
let params = {};
for (const item of strArr) {
params[item.substring(0, item.indexOf('='))] = item.substring(item.indexOf('=') + 1);
}
}
</script>
+2 -16
View File
@@ -74,7 +74,6 @@
document.getElementById('text1').style.display = 'none';
document.getElementById('text').style.display = 'flex';
}
getTypeAPackage();
}
f();
function isType() {
@@ -86,7 +85,7 @@
}
}
function androidLoad() {
fetch(`https://api.xjygjk.com/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
fetch(`https://api-jkglpt.iosp.ydpt.tech/health-system/version/getSysVersionDetailByPackageName?androidOrIos=1&packageName=com.xjjk.healthyclients`)
.then(response => {
if (!response.ok) {
throw new Error('网络响应不正常');
@@ -94,9 +93,8 @@
return response.json();
})
.then(data => {
console.log(data);
if (data.code === 200) {
window.open(`https://api.xjygjk.com/file/down/${data.result.appUrl}`)
window.open(`https://api-jkglpt.iosp.ydpt.tech/file/down/${data.result.appUrl}`)
} else {
window.alert('网络异常');
}
@@ -119,16 +117,4 @@
androidLoad();
}
}
function getTypeAPackage() {
const url = window.location.href;
const arr = url.indexOf('?') !== -1 ? url.split('?')[1].replace('#/', '') : '';
let strArr = arr.split('&')
let params = {};
for (const item of strArr) {
params[item.substring(0, item.indexOf('='))] = item.substring(item.indexOf('=') + 1);
}
}
</script>