diff --git a/common/src/main/ets/const/update_const.ts b/common/src/main/ets/const/update_const.ts index 9370b9c8ede27f3c1bb34a2c2b42a0a5f90c10ed..592157637f42efdf7d4a4008f8159c8cd83af987 100644 --- a/common/src/main/ets/const/update_const.ts +++ b/common/src/main/ets/const/update_const.ts @@ -425,7 +425,7 @@ export enum CountDownDialogType { /** * ab升级20S倒计时 */ - OTA_AB = 0, + OTA_AB = 1, } diff --git a/common/src/main/ets/util/UpdateUtils.ets b/common/src/main/ets/util/UpdateUtils.ets index 1537fdd76efdb8b73c698c077d8bdfb5f8c0ab56..afde3675e392339f07e49d8a4eacaff684053d38 100644 --- a/common/src/main/ets/util/UpdateUtils.ets +++ b/common/src/main/ets/util/UpdateUtils.ets @@ -76,7 +76,7 @@ export namespace UpdateUtils { * @param err 返回信息 * @param return 接口调用结果 */ - export function isSuccessCallback(result: unknow, err: any): boolean { + export function isSuccessCallback(result: unknown, err: any): boolean { return result && !err; } } \ No newline at end of file