This commit is contained in:
2025-02-07 14:24:18 +08:00
parent d05e291350
commit dd198af72d
3 changed files with 273 additions and 274 deletions

View File

@@ -2,6 +2,7 @@ export default function() {
// #ifdef APP-PLUS
return new Promise((resolve, reject) => {
plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
console.log('哈哈哈哈', widgetInfo)
let data = {
action: 'checkVersion',
appid: plus.runtime.appid,
@@ -29,4 +30,4 @@ export default function() {
})
})
// #endif
}
}

View File

@@ -7,6 +7,7 @@ export default function() {
// #ifdef APP-PLUS
return new Promise((resolve, reject) => {
callCheckVersion().then(async (e) => {
console.log('hhhhhhhhhhhh', e)
if (!e.result) return;
const {
code,
@@ -64,7 +65,7 @@ export default function() {
uni.removeStorageSync(PACKAGE_INFO_KEY)
}
})
return
} else if (code < 0) {
// TODO 云函数报错处理
@@ -155,4 +156,4 @@ function updateUseModal(packageInfo) {
});
}
});
}
}