From fcd04ac9bf3d6efcedbf441848b968e483692cc3 Mon Sep 17 00:00:00 2001 From: Jeepeng Date: Mon, 28 May 2018 13:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20Android=20=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E8=B4=A6=E5=8F=B7=E6=97=B6=E6=8A=A5=E9=94=99=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index c01f757..1077d4d 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,11 @@ class XGPush { sound: true }); } else { - return XGPushManager.registerPush(account); + if (account) { + return XGPushManager.bindAccount(account); + } else { + return XGPushManager.registerPush(); + } } }