This commit is contained in:
mixtan 2025-05-08 13:49:37 +08:00
commit f451e44715
3 changed files with 48 additions and 2172 deletions

View File

@ -864,10 +864,9 @@ function downloadPopup(data) {
}
export default function (isPrompt = false) {
getCurrentNo((versionInfo) => {
componentConfig.getServerNo(versionInfo, isPrompt, (res) => {
if (res.updateType == 'forcibly' || res.updateType == 'silent') {
if (/\.wgt$/i.test(res.downloadUrl)) {
if (/\.wgt$/i.test(res.download_wgt_url)) {
getDownload(res);
} else if (/\.html$/i.test(res.downloadUrl)) {
plus.runtime.openURL(res.downloadUrl);

View File

@ -71,7 +71,7 @@ export default {
}
console.log('marketId', marketId);
console.log('phoneInfo.brand',phoneInfo.brand)
console.log('phoneInfo.brand', phoneInfo.brand);
let params = {
marketId: marketId,
@ -83,6 +83,13 @@ export default {
if (res && res.status == 200) {
if (res.data) {
res.data.updateType = 'solicit';
if (res.data.is_force_update) {
res.updateType = 'forcibly';
callback && callback(res.data);
} else {
callback && callback(res.data);
}
}
}

File diff suppressed because one or more lines are too long