|
|
@ -108,6 +108,7 @@ public class PushApplicationServiceImpl extends ServiceImpl<PushApplicationMappe |
|
|
|
|
|
|
|
|
|
|
|
private void send(PushMessage pushMessage, String toUserId, String playSound, String playVibrate, String playLights) { |
|
|
|
private void send(PushMessage pushMessage, String toUserId, String playSound, String playVibrate, String playLights) { |
|
|
|
// 设置默认数据
|
|
|
|
// 设置默认数据
|
|
|
|
|
|
|
|
pushMessage.setType("customizedcast"); |
|
|
|
pushMessage.setDisplayType("notification"); |
|
|
|
pushMessage.setDisplayType("notification"); |
|
|
|
pushMessage.setAliasType(PushClientUtil.uPushUserAliasType); |
|
|
|
pushMessage.setAliasType(PushClientUtil.uPushUserAliasType); |
|
|
|
pushMessage.setAlias(toUserId); |
|
|
|
pushMessage.setAlias(toUserId); |
|
|
@ -120,7 +121,7 @@ public class PushApplicationServiceImpl extends ServiceImpl<PushApplicationMappe |
|
|
|
pushMessage.setCustom(custom.toString()); |
|
|
|
pushMessage.setCustom(custom.toString()); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
JSONObject jsonObject = new JSONObject(); |
|
|
|
jsonObject.put("production_mode", PushClientUtil.PRODUCTION_MODE); |
|
|
|
jsonObject.put("production_mode", PushClientUtil.PRODUCTION_MODE); |
|
|
|
jsonObject.put("type", "customizedcast"); |
|
|
|
jsonObject.put("type", pushMessage.getType()); |
|
|
|
jsonObject.put("description", pushMessage.getRemarks()); |
|
|
|
jsonObject.put("description", pushMessage.getRemarks()); |
|
|
|
jsonObject.put("alias_type", pushMessage.getAliasType()); |
|
|
|
jsonObject.put("alias_type", pushMessage.getAliasType()); |
|
|
|
jsonObject.put("alias", pushMessage.getAlias()); |
|
|
|
jsonObject.put("alias", pushMessage.getAlias()); |
|
|
|