提交 9f3311fb 编写于 作者: L liuxiyao223

IssueNo:docs整改

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>
上级 091b182d
......@@ -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)}`);
});
```
......
......@@ -1267,10 +1267,10 @@ rejectCall\(callId?: number, options?: RejectMessageOptions\): Promise\<void\>
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)}`);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册