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 88ec227d42b633cb06e3d73e145349a0c9d11414..3c646c2577a5fd818f3deec43dd0649075dc8090 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 () : Promise { return resolve(uniUpgradeCenterResult) } else if (code < 0) { - // TODO 云函数报错处理 console.error(message) return reject(uniUpgradeCenterResult) } return resolve(uniUpgradeCenterResult) }).catch((err) => { - // TODO 云函数报错处理 reject(err) }) });