u
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user