提交 a62ed1cf 编写于 作者: L liuxiyao223

doc-sms接口更新

Signed-off-by: Nliuxiyao223 <liuxiyao223@huawei.com>
上级 7a21719c
...@@ -251,7 +251,7 @@ let serviceCenter = '+861xxxxxxxxxx'; ...@@ -251,7 +251,7 @@ let serviceCenter = '+861xxxxxxxxxx';
let destinationPort = 1000; let destinationPort = 1000;
let options = {slotId, content, destinationHost, serviceCenter, destinationPort, sendCallback, deliveryCallback}; let options = {slotId, content, destinationHost, serviceCenter, destinationPort, sendCallback, deliveryCallback};
let promise = sms.sendShortMessage(options); let promise = sms.sendShortMessage(options);
promise.then(data => { promise.then(() => {
console.log(`sendShortMessage success`); console.log(`sendShortMessage success`);
}).catch(err => { }).catch(err => {
console.error(`sendShortMessage failed, promise: err->${JSON.stringify(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.
先完成此消息的编辑!
想要评论请 注册