From 995a76a81f0597a5a6b90eddfdccc9d5ff954896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=B5=B7?= Date: Fri, 22 Jul 2022 09:38:06 +0000 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20=E6=B1=9F=E6=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/extend/systemplugin/napi/ohos_update.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/runtime/main/extend/systemplugin/napi/ohos_update.js b/runtime/main/extend/systemplugin/napi/ohos_update.js index f052ee8d..c5a40d7e 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_update.js +++ b/runtime/main/extend/systemplugin/napi/ohos_update.js @@ -434,16 +434,16 @@ const UpgradeInfo = { const BusinessType = { vendor: BusinessVendor, - subType: BusinessSubType.FIRMWARE + subType: BusinessSubType } const DownloadOptions = { - allowNetwork: NetType.CELLULAR, - order: Order.DOWNLOAD_AND_INSTALL + allowNetwork: NetType, + order: Order } const ResumeDownloadOptions = { - allowNetwork: NetType.CELLULAR + allowNetwork: NetType } const PauseDownloadOptions = { @@ -451,11 +451,11 @@ const PauseDownloadOptions = { } const UpgradeOptions = { - order: Order.INSTALL + order: Order } const ClearOptions = { - status: UpgradeStatus.UPGRADE_SUCCESS + status: UpgradeStatus } const EventClassifyInfo = { @@ -464,7 +464,7 @@ const EventClassifyInfo = { } const UpgradeFile = { - fileType: ComponentType.OTA, + fileType: ComponentType, filePath: "[PC Preview] unknown filePath" }