diff --git a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md index 75b1a37e514bcc67fea6278647e231fb6b7672a9..76e67f92708a670cfd2bd9896e3dd8f26af608ee 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-commonEventManager.md @@ -193,12 +193,7 @@ publish(event: string, callback: AsyncCallback\): void |错误码ID |错误信息 | |-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| |1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| |1500007 |message send error| |1500008 |CEMS error| |1500009 |system error| @@ -242,16 +237,12 @@ publish(event: string, options: CommonEventPublishData, callback: AsyncCallback\ **错误码:** |错误码ID |错误信息 | |-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| |1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| |1500007 |message send error| |1500008 |CEMS error| |1500009 |system error| + **示例:** @@ -303,12 +294,7 @@ publishAsUser(event: string, userId: number, callback: AsyncCallback\): vo **错误码:** |错误码ID |错误信息 | |-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| |1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| |1500007 |message send error| |1500008 |CEMS error| |1500009 |system error| @@ -360,12 +346,7 @@ publishAsUser(event: string, userId: number, options: CommonEventPublishData, ca **错误码:** |错误码ID |错误信息 | |-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| |1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| |1500007 |message send error| |1500008 |CEMS error| |1500009 |system error| @@ -417,19 +398,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo, callback: AsyncCallbac | subscribeInfo | [CommonEventSubscribeInfo](#commoneventsubscribeinfo) | 是 | 表示订阅信息。 | | callback | AsyncCallback\<[CommonEventSubscriber](#commoneventsubscriber)> | 是 | 表示创建订阅者的回调方法。 | -**错误码:** -|错误码ID |错误信息 | -|-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| -|1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| -|1500007 |message send error| -|1500008 |CEMS error| -|1500009 |system error| - **示例:** @@ -480,19 +448,6 @@ createSubscriber(subscribeInfo: CommonEventSubscribeInfo): Promise\ | 返回订阅者对象。 | -**错误码:** -|错误码ID |错误信息 | -|-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| -|1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| -|1500007 |message send error| -|1500008 |CEMS error| -|1500009 |system error| - **示例:** ```ts @@ -534,19 +489,6 @@ subscribe(subscriber: CommonEventSubscriber, callback: AsyncCallback\ | 是 | 表示接收公共事件数据的回调函数。 | -**错误码:** -|错误码ID |错误信息 | -|-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| -|1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| -|1500007 |message send error| -|1500008 |CEMS error| -|1500009 |system error| - **示例:** ```ts @@ -608,19 +550,6 @@ unsubscribe(subscriber: CommonEventSubscriber, callback?: AsyncCallback\): | subscriber | [CommonEventSubscriber](#commoneventsubscriber) | 是 | 表示订阅者对象。 | | callback | AsyncCallback\ | 否 | 表示取消订阅的回调方法。 | -**错误码:** -|错误码ID |错误信息 | -|-----------|--------------------| -|1500001 |Want action is null | -|1500002 |sandbox application can not send common event| -|1500003 |common event send frequency too high| -|1500004 |not System services or System app| -|1500005 |subscriber can not found| -|1500006 |usreId is invalid| -|1500007 |message send error| -|1500008 |CEMS error| -|1500009 |system error| - **示例:** ```ts