This commit is contained in:
jinyu committed 2015-07-27 20:53:17 +08:00
1 parent 30b64dc54a
commit 0cca9d6d02
15 files changed
+184 -20

No files matched your search

@@ -65,6 +65,9 @@ public class NotifyApi extends MpApi {
throws WeixinException {
NotifyTuple tuple = notify.getTuple();
String msgtype = tuple.getMessageType();
if ("mpnews".equals(msgtype)) {
throw new WeixinException("only support news message");
}
JSONObject obj = new JSONObject();
obj.put("touser", notify.getTouser());
obj.put("msgtype", msgtype);