diff --git a/en/application-dev/reference/apis/js-apis-call.md b/en/application-dev/reference/apis/js-apis-call.md index 068a12cd46efce13b68a4fcf697306c4b5d8f256..9ba1dfa2ca3ef6a55b0e2a662f4f413b91d1013f 100644 --- a/en/application-dev/reference/apis/js-apis-call.md +++ b/en/application-dev/reference/apis/js-apis-call.md @@ -1253,10 +1253,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 f3a0346f437060aba3099a96b950015d5e8b8c2b..a2f6a42f20cd78caa3a3e45f21e40e43266397b2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-call.md +++ b/zh-cn/application-dev/reference/apis/js-apis-call.md @@ -1267,10 +1267,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)}`); }); ```