未验证 提交 121af4f9 编写于 作者: O openharmony_ci 提交者: Gitee

!18597 docs整改

Merge pull request !18597 from Aurora/master
...@@ -1253,10 +1253,10 @@ For details about the following error codes, see [Telephony Error Codes](../../r ...@@ -1253,10 +1253,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)}`);
}); });
``` ```
......
...@@ -1267,10 +1267,10 @@ rejectCall\(callId?: number, options?: RejectMessageOptions\): Promise\<void\> ...@@ -1267,10 +1267,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.
先完成此消息的编辑!
想要评论请 注册