From 509efcad92bde1d63077beaea86dcfd5418503c9 Mon Sep 17 00:00:00 2001 From: liuxiyao223 Date: Wed, 24 May 2023 17:39:24 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:docs=E6=95=B4=E6=94=B9(=E6=8C=91?= =?UTF-8?q?=E5=8D=953.2=E5=88=86=E6=94=AF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description:js-apis-call.md的call.reject改为call.rejectCall Sig:SIG_Telephony Feature or Bugfix: Feature Binary Source: No Signed-off-by: liuxiyao223 --- en/application-dev/reference/apis/js-apis-call.md | 6 +++--- zh-cn/application-dev/reference/apis/js-apis-call.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-call.md b/en/application-dev/reference/apis/js-apis-call.md index 12ebe7c4d1..3e25735a64 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 2dfc8797c5..3af7c75b01 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)}`); }); ``` -- GitLab