This commit is contained in:
jinyu
2015-07-27 20:53:17 +08:00
parent 30b64dc54a
commit 0cca9d6d02
15 changed files with 184 additions and 20 deletions
@@ -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);