if (msgType.equals("text")) {
// 接收文本消息
String content = rootElt.elementText("Content");
// 全网检测
........
} else {
JSONObject message_type = new JSONObject();
message_type.put("value", "1");
message_type.put("type", "param");
JSONObject message_content = new JSONObject();
message_content.put("value", content);
message_content.put("type", "param");
message.put("message_type", message_type);
message.put("message_content", message_content);
这个问题建议看微信二次开发的文档