We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b3ebce commit 5f40875Copy full SHA for 5f40875
src/main/java/com/shinemo/mpush/alloc/PushHandler.java
@@ -81,7 +81,7 @@ private void sendPush(Map<String, Object> params) {
81
NotificationDO notificationDO = new NotificationDO();
82
notificationDO.content = "MPush开源推送," + hello;
83
notificationDO.title = "MPUSH推送";
84
- notificationDO.nid = idSeq.get() % 2;
+ notificationDO.nid = idSeq.get() % 2 + 1;
85
notificationDO.ticker = "你有一条新的消息,请注意查收";
86
PushMsg pushMsg = PushMsg.build(MsgType.NOTIFICATION_AND_MESSAGE, Jsons.toJson(notificationDO));
87
pushMsg.setMsgId("msg_" + idSeq.incrementAndGet());
0 commit comments