From f09d053cac9b453b36317fa7caaac822a3a73aa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=8F=8B=E6=9D=BE?= Date: Tue, 20 Aug 2024 11:45:30 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E6=B0=B4=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邹友松 --- AppScope/app.json5 | 4 ++-- common/src/main/ets/manager/UpgradeInterface.ets | 2 +- feature/ota/src/main/ets/notify/NotificationHelper.ets | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 5ea08d8..f706bbb 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -3,8 +3,8 @@ "bundleName": "com.ohos.updateapp", "debug": false, "vendor": "example", - "versionCode": 2040000115, - "versionName": "204.0.0.115", + "versionCode": 2040000120, + "versionName": "204.0.0.120", "icon": "$media:app_icon", "label": "$string:app_name", "distributedNotificationEnabled": true diff --git a/common/src/main/ets/manager/UpgradeInterface.ets b/common/src/main/ets/manager/UpgradeInterface.ets index f89f5a4..66deb6d 100644 --- a/common/src/main/ets/manager/UpgradeInterface.ets +++ b/common/src/main/ets/manager/UpgradeInterface.ets @@ -200,6 +200,6 @@ export interface INotify { /** * 检查notification服务是否启动 */ - isServiceReady: Promise; + isServiceReady(): Promise; } diff --git a/feature/ota/src/main/ets/notify/NotificationHelper.ets b/feature/ota/src/main/ets/notify/NotificationHelper.ets index 1c948e2..cd8cd9f 100644 --- a/feature/ota/src/main/ets/notify/NotificationHelper.ets +++ b/feature/ota/src/main/ets/notify/NotificationHelper.ets @@ -222,7 +222,7 @@ export class NotificationHelper implements INotify { break; } count++; - await new Promise((resolve)) => setTimeout(() => resolve(), 1000)); + await new Promise((resolve) => setTimeout(() => resolve(), 1000)); this.logError('notification service is not ready'); } catch (err) { count++; -- Gitee