提交 ff48a265 编写于 作者: L liangZ15

Signed-off-by: liangZ15 <lihongliang20@huawei.com>

上级 c0bd7c79
......@@ -991,7 +991,7 @@ var upgradeFile = {
fileType: ComponentType.OTA // OTA包
filePath: "path" // 本地升级包路径
}
updater.verifyUpgradePackage(upgradeFile, "cerstFilePath").then(number => {
localUpdater.verifyUpgradePackage(upgradeFile, "cerstFilePath").then(number => {
console.log("verifyUpgradePackage result: " + number);
}).catch(err => {
console.log("verifyUpgradePackage error $JSON.stringify(err)");
......@@ -1046,7 +1046,7 @@ var upgradeFile = [{
fileType: ComponentType.OTA // OTA包
filePath: "path" // 本地升级包路径
}]
updater.applyNewVersion(upgradeFiles).then(() => {
localUpdater.applyNewVersion(upgradeFiles).then(() => {
console.log("applyNewVersion success");
}).catch(err => {
console.log("applyNewVersion error $JSON.stringify(err)");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册