diff --git a/uni_modules/uni-upgrade-center-app/utils/call-check-version.ts b/uni_modules/uni-upgrade-center-app/utils/call-check-version.ts index 1d0c10a5a4d2f0fc48343f728211a2ae5cdfa0d4..f14d99b5cca0cffdbe4ce432e0276368ee15861c 100644 --- a/uni_modules/uni-upgrade-center-app/utils/call-check-version.ts +++ b/uni_modules/uni-upgrade-center-app/utils/call-check-version.ts @@ -69,6 +69,7 @@ export default function (): Promise { action: 'checkVersion', appid: appId, appVersion: appVersion, + is_uniapp_x: true, wgtVersion: '0.0.0.0.0.1' } try { diff --git a/uni_modules/uni-upgrade-center-app/utils/check-update.ts b/uni_modules/uni-upgrade-center-app/utils/check-update.ts index d7932263e695df267017d5faf005f97228268d55..7adf0586bb105768a78e6f6dab1072137bc2baee 100644 --- a/uni_modules/uni-upgrade-center-app/utils/check-update.ts +++ b/uni_modules/uni-upgrade-center-app/utils/check-update.ts @@ -54,13 +54,11 @@ export default function (component : ComponentPublicInstance | null = null) : Pr return resolve(uniUpgradeCenterResult) } else if (code < 0) { - // TODO 云函数报错处理 console.error(message) return reject(uniUpgradeCenterResult) } return resolve(uniUpgradeCenterResult) }).catch((err) => { - // TODO 云函数报错处理 reject(err) }) });