From 0e23c1b74667dd329c0ea216a850dba01e0d32ee Mon Sep 17 00:00:00 2001 From: mx1700 Date: Mon, 15 Jul 2019 23:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/notification/notification.js | 2 -- src/page/NotificationPage.js | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/component/notification/notification.js b/src/component/notification/notification.js index 2f2bd15..3fcf748 100644 --- a/src/component/notification/notification.js +++ b/src/component/notification/notification.js @@ -36,7 +36,6 @@ export default class Notification extends Component { } renderComment(msg) { - console.log(msg); const users = unique(msg.list.map(it => it.content.author.name)).join('、'); const body = `${users} 回复了你`; @@ -64,7 +63,6 @@ export default class Notification extends Component { } renderLike(msg) { - console.log(msg); const body = `${msg.content.user.name} 给了你一个创可贴`; return ( diff --git a/src/page/NotificationPage.js b/src/page/NotificationPage.js index 29f037f..9d332f1 100644 --- a/src/page/NotificationPage.js +++ b/src/page/NotificationPage.js @@ -136,8 +136,9 @@ export default class NotificationPage extends Component { //const push = settings['pushMessage']; const push = true; const alias = push ? user.id.toString() : user.id.toString() + '_close'; + console.log("Push.setAccount..."); Push.setAccount(alias, success => { - console.log('JPushModule.setAlias ' + alias + ' ' + success); + console.log('Push.setAccount ' + alias + ' ', success); }); // Crashlytics.setUserName(user.name);