From f1af6ba03b55d016ae5a1b8f6ab9f894de142e72 Mon Sep 17 00:00:00 2001 From: DCloud_LXH <283700113@qq.com> Date: Tue, 7 Nov 2023 19:49:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(upgrade-center):=20=E5=8D=87=E7=BA=A7?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E6=96=B0=E5=A2=9E=20is=5Funiapp=5Fx=20param?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-upgrade-center-app/utils/call-check-version.ts | 1 + uni_modules/uni-upgrade-center-app/utils/check-update.ts | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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 1d0c10a5..f14d99b5 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 d7932263..7adf0586 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) }) }); -- GitLab