提交 59e90591 编写于 作者: D DCloud_LXH

feat(upgrade-center): 升级中心新增 is_uniapp_x param

上级 4788b160
...@@ -69,6 +69,7 @@ export default function (): Promise<UniUpgradeCenterResult> { ...@@ -69,6 +69,7 @@ export default function (): Promise<UniUpgradeCenterResult> {
action: 'checkVersion', action: 'checkVersion',
appid: appId, appid: appId,
appVersion: appVersion, appVersion: appVersion,
is_uniapp_x: true,
wgtVersion: '0.0.0.0.0.1' wgtVersion: '0.0.0.0.0.1'
} }
try { try {
......
...@@ -54,13 +54,11 @@ export default function () : Promise<UniUpgradeCenterResult> { ...@@ -54,13 +54,11 @@ export default function () : Promise<UniUpgradeCenterResult> {
return resolve(uniUpgradeCenterResult) return resolve(uniUpgradeCenterResult)
} else if (code < 0) { } else if (code < 0) {
// TODO 云函数报错处理
console.error(message) console.error(message)
return reject(uniUpgradeCenterResult) return reject(uniUpgradeCenterResult)
} }
return resolve(uniUpgradeCenterResult) return resolve(uniUpgradeCenterResult)
}).catch((err) => { }).catch((err) => {
// TODO 云函数报错处理
reject(err) reject(err)
}) })
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册