Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit fcd04ac

Browse files
committed
修复 Android 绑定账号时报错的问题
1 parent 9e48480 commit fcd04ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ class XGPush {
5252
sound: true
5353
});
5454
} else {
55-
return XGPushManager.registerPush(account);
55+
if (account) {
56+
return XGPushManager.bindAccount(account);
57+
} else {
58+
return XGPushManager.registerPush();
59+
}
5660
}
5761
}
5862

0 commit comments

Comments
 (0)