提交 7a21719c 编写于 作者: L liuxiyao223

doc-sms接口更新

Signed-off-by: Nliuxiyao223 <liuxiyao223@huawei.com>
上级 520f9b9b
......@@ -196,7 +196,7 @@ let serviceCenter = '+861xxxxxxxxxx';
let destinationPort = 1000;
let options = {slotId, content, destinationHost, serviceCenter, destinationPort, sendCallback, deliveryCallback};
sms.sendMessage(options, (err) => {
console.log(`callback: err->${JSON.stringify(err)}.`);
console.log(`callback: err->${JSON.stringify(err)}`);
});
```
......@@ -252,7 +252,7 @@ let destinationPort = 1000;
let options = {slotId, content, destinationHost, serviceCenter, destinationPort, sendCallback, deliveryCallback};
let promise = sms.sendShortMessage(options);
promise.then(data => {
console.log(`sendShortMessage success, promise: data->${JSON.stringify(data)}`);
console.log(`sendShortMessage success`);
}).catch(err => {
console.error(`sendShortMessage failed, promise: err->${JSON.stringify(err)}`);
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册