Skip to content

Commit

Permalink
opt unsupport msg handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamling committed Jan 14, 2019
1 parent 0d84782 commit 19d124b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -57,7 +57,7 @@ public AbstractMsgXmlHandler(WechatMessage message) {
this.message = message;
String content = isUnescape() ? StringUtils.decodeXml(message.Content)
: message.Content;
if (isParseXmlContent()) {
if (isParseXmlContent() && !"该类型暂不支持,请在手机上查看".equals(content)) {
String regex = String.format(".*(<%s>.*</%s>).*", rootTag, rootTag);
this.content = Pattern.compile(regex, Pattern.MULTILINE)
.matcher(content.replaceAll("\\s*<br\\s?/>\\s*", ""))
Expand Down

0 comments on commit 19d124b

Please sign in to comment.