diff --git a/en/application-dev/reference/apis/js-apis-call.md b/en/application-dev/reference/apis/js-apis-call.md index 12ebe7c4d1a7fdb84ca8af45cd0efc2fb74bda6c..3e25735a64c0d71c6bf07fa4f21eeee901afb2f6 100644 --- a/en/application-dev/reference/apis/js-apis-call.md +++ b/en/application-dev/reference/apis/js-apis-call.md @@ -1252,10 +1252,10 @@ For details about the following error codes, see [Telephony Error Codes](../../r let rejectMessageOptions={ messageContent: "Unknown number blocked" } -call.reject(1, rejectMessageOptions).then(() => { - console.log(`reject success.`); +call.rejectCall(1, rejectMessageOptions).then(() => { + console.log(`rejectCall success.`); }).catch((err) => { - console.error(`reject fail, promise: err->${JSON.stringify(err)}`); + console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`); }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-call.md b/zh-cn/application-dev/reference/apis/js-apis-call.md index 2dfc8797c5cf2f0ed6bccb3cf0c9a1d07c6d7bd2..3af7c75b013ab97c39f6903966942948530f66f8 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-call.md +++ b/zh-cn/application-dev/reference/apis/js-apis-call.md @@ -1252,10 +1252,10 @@ rejectCall(callId?: number, options?: RejectMessageOptions\): Promise let rejectMessageOptions={ messageContent: "拦截陌生号码" } -call.reject(1, rejectMessageOptions).then(() => { - console.log(`reject success.`); +call.rejectCall(1, rejectMessageOptions).then(() => { + console.log(`rejectCall success.`); }).catch((err) => { - console.error(`reject fail, promise: err->${JSON.stringify(err)}`); + console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`); }); ```