12345678910111213141516171819202122232425262728293031323334353637 |
- package com.ruoyi.common.utils.jPush;
- import org.springframework.stereotype.Component;
- @Component
- public class JPushToolUtil extends AbstractJPushToolUtil {
- /**
- * 发送给指定的极光ID
- * @param notificationTitle 通知标题
- * @param msgTitle 内容标题
- * @param msgContent 内容
- * @param jPushVO 扩展的json
- * @param registrationId 极光id
- * @return
- */
- public static boolean sendToRegistrationId(
- String notificationTitle,
- String msgTitle,
- String msgContent,
- String jPushVO,
- String... registrationId) {
- return sendToRegistrationId1(notificationTitle,msgTitle,msgContent,jPushVO,registrationId);
- }
- /*public static void main(String[] args) {
- String num = "-0405-别名";
- String notificationTitle = "推送测试-通知标题" + num;
- String msgTitle = "推送测试-内容标题" + num;
- String msgContent = "我是内容" + num;
- String jPushVO = "我是扩展的json" + num;
- String[] registrationId = {"", ""};
- boolean b = JPushToolUtil.sendToRegistrationId(notificationTitle, msgTitle, msgContent, jPushVO, registrationId);
- System.out.println("i="+b);
- }*/
- }
|