未验证 提交 703011fb 编写于 作者: 江海 提交者: Gitee

Description: Fix ota demo

Signed-off-by: 江海<jianghai14@huawei.com>
https://gitee.com/openharmony/docs/issues/I5H68B
上级 f506f847
...@@ -776,7 +776,7 @@ let policy = { ...@@ -776,7 +776,7 @@ let policy = {
autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示 autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示
} }
updater.setUpgradePolicy(policy, (err, value) => { updater.setUpgradePolicy(policy, (err, value) => {
console.log(`setUpgradePolicy result: ${value?}`); console.log(`setUpgradePolicy result: ${value}`);
}); });
``` ```
...@@ -811,7 +811,7 @@ let policy = { ...@@ -811,7 +811,7 @@ let policy = {
autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示 autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示
} }
updater.setUpgradePolicy(policy).then(result => { updater.setUpgradePolicy(policy).then(result => {
console.log(`setUpgradePolicy &{result}`); console.log(`setUpgradePolicy ${result}`);
}).catch(err => { }).catch(err => {
console.log(`setUpgradePolicy promise error ${JSON.stringify(err)}`); console.log(`setUpgradePolicy promise error ${JSON.stringify(err)}`);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册