From d9aae0b6c199ba1f4b3baa1e168962fbad95a4bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=8F=8B=E6=9D=BE?= Date: Fri, 16 Aug 2024 03:17:56 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E5=8F=B7?= =?UTF-8?q?=EF=BC=8C=E5=8E=BB=E6=8E=89=E4=B8=8D=E5=90=88=E7=90=86=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹友松 --- AppScope/app.json5 | 4 ++-- feature/ota/src/main/ets/manager/OtaUpdateManager.ets | 1 - feature/ota/src/main/ets/manager/StateManager.ets | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 2d0b59c..e757ab9 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -3,8 +3,8 @@ "bundleName": "com.ohos.updateapp", "debug": false, "vendor": "example", - "versionCode": 2040000105, - "versionName": "204.0.0.105", + "versionCode": 2040000110, + "versionName": "204.0.0.110", "icon": "$media:app_icon", "label": "$string:app_name", "distributedNotificationEnabled": true diff --git a/feature/ota/src/main/ets/manager/OtaUpdateManager.ets b/feature/ota/src/main/ets/manager/OtaUpdateManager.ets index 21b0e0e..6c9661e 100644 --- a/feature/ota/src/main/ets/manager/OtaUpdateManager.ets +++ b/feature/ota/src/main/ets/manager/OtaUpdateManager.ets @@ -323,7 +323,6 @@ export class OtaUpdateManager { await this.getNewVersion(); } - this.log('notifyUpdateStatus' + 'notify start'); await StateManager.createInstance(otaStatus).notify(context, eventId); } diff --git a/feature/ota/src/main/ets/manager/StateManager.ets b/feature/ota/src/main/ets/manager/StateManager.ets index 3dc3674..352c564 100644 --- a/feature/ota/src/main/ets/manager/StateManager.ets +++ b/feature/ota/src/main/ets/manager/StateManager.ets @@ -579,6 +579,7 @@ export class UpgradeSuccess extends BaseState { async notify(context?: common.Context, eventId?: update.EventId): Promise { if (eventId == update.EventId.EVENT_UPGRADE_SUCCESS) { + LogUtils.info('StateManager', 'Upgrade success'); AppStorage.Set('installStatusRefresh', JSON.stringify(this.otaStatus)); await UpgradeAdapter.getInstance().getNotifyInstance()?.cancelAll(); let versionName = globalThis.lastVersionName; -- Gitee