浏览代码

老师课酬特殊提示音推送

zouxuan 4 年之前
父节点
当前提交
417a368935

+ 3 - 2
mec-thirdparty/src/main/java/com/ym/mec/thirdparty/message/provider/JiguangPushPlugin.java

@@ -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");