|
@@ -77,9 +77,10 @@ public class JiguangPushPlugin implements MessageSenderPlugin, InitializingBean
|
|
|
android.put("alert", alert);
|
|
|
android.put("sound", sound.split("\\.")[0]);
|
|
|
if(StringUtils.isNotEmpty(channelId)){
|
|
|
- android.put("channelId",channelId);
|
|
|
+ StringBuffer sb = new StringBuffer("{\"xiaomi\":{\"distribution\":\"secondary_push\",\"channel_id\":\"");
|
|
|
+ sb.append(channelId).append("\"}}");
|
|
|
+ android.put("third_party_channel", sb.toString());
|
|
|
}
|
|
|
- android.put("distribution", "secondary_push");
|
|
|
android.put("builder_id", 1);
|
|
|
JSONObject android_extras = new JSONObject();// android额外参数
|
|
|
android_extras.put("type", "infomation");
|