“5a280d3cb8afa26cf8c8986a33a078c5b8d1c153”上不存在“...program/git@gitcode.net:paddlepaddle/Paddle-Lite.git”
提交 509efcad 编写于 作者: L liuxiyao223

IssueNo:docs整改(挑单3.2分支)

Description:js-apis-call.md的call.reject改为call.rejectCall
Sig:SIG_Telephony
Feature or Bugfix: Feature
Binary Source: No
Signed-off-by: Nliuxiyao223 <liuxiyao223@huawei.com>
上级 ee43fd61
...@@ -1252,10 +1252,10 @@ For details about the following error codes, see [Telephony Error Codes](../../r ...@@ -1252,10 +1252,10 @@ For details about the following error codes, see [Telephony Error Codes](../../r
let rejectMessageOptions={ let rejectMessageOptions={
messageContent: "Unknown number blocked" messageContent: "Unknown number blocked"
} }
call.reject(1, rejectMessageOptions).then(() => { call.rejectCall(1, rejectMessageOptions).then(() => {
console.log(`reject success.`); console.log(`rejectCall success.`);
}).catch((err) => { }).catch((err) => {
console.error(`reject fail, promise: err->${JSON.stringify(err)}`); console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
......
...@@ -1252,10 +1252,10 @@ rejectCall(callId?: number, options?: RejectMessageOptions\): Promise<void\> ...@@ -1252,10 +1252,10 @@ rejectCall(callId?: number, options?: RejectMessageOptions\): Promise<void\>
let rejectMessageOptions={ let rejectMessageOptions={
messageContent: "拦截陌生号码" messageContent: "拦截陌生号码"
} }
call.reject(1, rejectMessageOptions).then(() => { call.rejectCall(1, rejectMessageOptions).then(() => {
console.log(`reject success.`); console.log(`rejectCall success.`);
}).catch((err) => { }).catch((err) => {
console.error(`reject fail, promise: err->${JSON.stringify(err)}`); console.error(`rejectCall fail, promise: err->${JSON.stringify(err)}`);
}); });
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册