diff --git a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md index 8c0b11cd56f2ae800cb27ffcc2803442b864205b..0643bf833845f7804041327d10f3bbcfe892daae 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md +++ b/zh-cn/application-dev/reference/apis/js-apis-inner-application-abilityDelegator.md @@ -502,8 +502,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { console.info('getCurrentTopAbility callback'); ability = data; - abilityDelegator.doAbilityForeground(ability, (err : any, data : any) => { - console.info('doAbilityForeground callback'); + abilityDelegator.doAbilityForeground(ability, (err : any) => { + console.info("doAbilityForeground callback"); }); }); ``` @@ -540,8 +540,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { console.info('getCurrentTopAbility callback'); ability = data; - abilityDelegator.doAbilityForeground(ability).then((data : any) => { - console.info('doAbilityForeground promise'); + abilityDelegator.doAbilityForeground(ability).then(() => { + console.info("doAbilityForeground promise"); }); }); ``` @@ -573,8 +573,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { console.info('getCurrentTopAbility callback'); ability = data; - abilityDelegator.doAbilityBackground(ability, (err : any, data : any) => { - console.info('doAbilityBackground callback'); + abilityDelegator.doAbilityBackground(ability, (err : any) => { + console.info("doAbilityBackground callback"); }); }); ``` @@ -611,8 +611,8 @@ abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator(); abilityDelegator.getCurrentTopAbility((err : any, data : any) => { console.info('getCurrentTopAbility callback'); ability = data; - abilityDelegator.doAbilityBackground(ability).then((data : any) => { - console.info('doAbilityBackground promise'); + abilityDelegator.doAbilityBackground(ability).then(() => { + console.info("doAbilityBackground promise"); }); }); ``` diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md b/zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md index 9c5fe5a338ad282b66cced8a4ebe3ef477580545..cc41fe2d5b5b3a13332d9a4b6c7e71a1b872d988 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-CommonEventService.md @@ -3,7 +3,7 @@ ## 1500001 want中Action为空 **错误信息** -Want action is null +> The action field in the want parameter is null. **错误描述** 发送事件的want中的Action属性为空时系统会产生此错误码。 @@ -17,7 +17,7 @@ Want action is null ## 1500002 沙箱引用无法发送公共事件 **错误信息** -sandbox application can not send common event +> A sandbox application cannot send common events. **错误描述** 沙箱引用无法发送公共事件。 @@ -31,7 +31,7 @@ sandbox application can not send common event ## 1500003 事件发送频率过高 **错误信息** -common event send frequency too high +> Too many common events are send in a short period of time. **错误描述** 应用发送事件过于频繁。 @@ -45,7 +45,7 @@ common event send frequency too high ## 1500004 无法发送系统公共事件 **错误信息** -not System services or System app +> A third-party application cannot send system common events. **错误描述** 当前应用无法发送系统公共事件。 @@ -59,7 +59,7 @@ not System services or System app ## 1500005 未找到订阅者 **错误信息** -subscriber can not found +> The subscriber is not found. **错误描述** 找不到订阅者。 @@ -73,7 +73,7 @@ subscriber can not found ## 1500006 无效userId **错误信息** -usreId is invalid +> Invalid userId. **错误描述** 无效的userId。 @@ -87,7 +87,7 @@ usreId is invalid ## 1500007 IPC请求发送失败 **错误信息** -message send error +> Failed to send the message. **错误描述** IPC发送请求失败。 @@ -101,7 +101,7 @@ IPC发送请求失败。 ## 1500008 读取数据失败 **错误信息** -CEMS error +> Failed to read the data. **错误描述** 服务端发生错误。 @@ -112,10 +112,10 @@ CEMS error **处理步骤** 稍后重新尝试。 -## 1500009 system error +## 1500009 系统错误 **错误信息** -system error +> System error. **错误描述** 处理业务时系统发生异常,如获取系统当前时间失败。