|
@@ -37,6 +37,16 @@ public class WebSocketPush {
|
|
|
//将消息推送到极光
|
|
|
JPushUtils.jPushSendMsg(title, Collections.singletonList(userId));
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 群发用户消息
|
|
|
+ */
|
|
|
+ public static void byUsers(PushTypeEnum pushTypeEnum, List<Long> userIds, String title, Integer businessType) {
|
|
|
+ for (Long userId : userIds) {
|
|
|
+ byUser(pushTypeEnum, userId, title, businessType, StringPool.EMPTY);
|
|
|
+ }
|
|
|
+ //将消息推送到极光
|
|
|
+ JPushUtils.jPushSendMsg(title, userIds);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 发送用户消息
|