提交 a3f05a5f 编写于 作者: F fangJinliang1

fix docs

Signed-off-by: NfangJinliang1 <fangjinliang1@huawei.com>
Change-Id: Id8bbfe614c2c0b6170ebbe4527d5c1cd30f9df47
上级 cfe11e26
......@@ -118,7 +118,7 @@ var subscriber = {
},
};
Notification.subscribe(subscriber, (err, data) => { // callback形式调用异步接口
Notification.subscribe(subscriber, (err) => { // callback形式调用异步接口
if (err.code) {
console.error('===>failed to subscribe because ' + JSON.stringify(err));
return;
......@@ -154,7 +154,7 @@ var notificationRequest = {
}
//通知发送
Notification.publish(notificationRequest) .then((data) => {
Notification.publish(notificationRequest) .then(() => {
console.info('===>publish promise success req.id : ' + notificationRequest.id);
}).catch((err) => {
console.error('===>publish promise failed because ' + JSON.stringify(err));
......@@ -223,7 +223,7 @@ var notificationRequest = {
}
//通知发送
Notification.publish(notificationRequest) .then((data) => {
Notification.publish(notificationRequest) .then(() => {
console.info('===>publish promise success req.id : ' + notificationRequest.id);
}).catch((err) => {
console.error('===>publish promise failed because ' + JSON.stringify(err));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册