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

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

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