未验证 提交 692f8ee8 编写于 作者: O openharmony_ci 提交者: Gitee

!11733 事件通知开发指南修改

Merge pull request !11733 from FangJinliang/OpenHarmony-3.1-Release
......@@ -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.
先完成此消息的编辑!
想要评论请 注册