diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 2d0b59c916b3c5a6c463c4cff3223587e61bae2e..e757ab92596872eefe3e1555d5d3487c3ea19066 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 21b0e0edde932dd3c206da49489e7a1225312ecf..6c9661e5ab7209a7bd8ed74a5ff7a0a703d5d39f 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 3dc36744158907a608ac7117097b02ea124d6200..352c564c813eb7f0955e1188630ca877816bb674 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;