diff --git a/AppScope/app.json5 b/AppScope/app.json5 index 5ea08d8f9f05b257ea6fa3cd88e10e4725ebbf02..f706bbb4dfa77f90f36a8c01480780c08a8e16b6 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 f89f5a49ffb32812132e60819911f395c0124288..66deb6d9706c2b488ca3596e55713f980f2cda92 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 1c948e2aaf928703b5795d33a11689af41f9741e..cd8cd9f820581dfd58245ec90b66655603abb3ee 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++;