|
@@ -139,6 +139,7 @@
|
|
|
function doCheckUpdata() {
|
|
|
checkUpdate().then(res => {
|
|
|
updateFlag.value = res;
|
|
|
+ console.log(updateFlag.value)
|
|
|
if (!res) {
|
|
|
uni.showModal({
|
|
|
title: '更新',
|
|
@@ -169,6 +170,7 @@
|
|
|
}
|
|
|
|
|
|
function checkUpdate() {
|
|
|
+ console.log("88888")
|
|
|
uni.getSystemInfo({
|
|
|
success: function(res) {
|
|
|
appInfo.value = res;
|
|
@@ -178,13 +180,16 @@
|
|
|
let flag = getAppInfoListByType(path.checkAppURL, {
|
|
|
type: appInfo.value.osName
|
|
|
}).then(res => {
|
|
|
+ console.log(res)
|
|
|
newAppInfo.value = res.rows[0];
|
|
|
+ console.log(newAppInfo.value, "111")
|
|
|
if (res.rows[0]) {
|
|
|
return appInfo.value.appWgtVersion === newAppInfo.value.versionName;
|
|
|
} else {
|
|
|
return true;
|
|
|
}
|
|
|
})
|
|
|
+ console.log("flag", flag)
|
|
|
return flag;
|
|
|
}
|
|
|
|