|
|
@@ -7,11 +7,13 @@ import com.mrxu.framework.common.weixin.msg.in.event.*;
|
|
|
import com.mrxu.framework.common.weixin.msg.in.speech_recognition.InSpeechRecognitionResults;
|
|
|
import com.mrxu.framework.common.xcx.msg.in.AuditFailMsg;
|
|
|
import com.mrxu.framework.common.xcx.msg.in.AuditSuccessMsg;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.dom4j.Document;
|
|
|
import org.dom4j.DocumentException;
|
|
|
import org.dom4j.DocumentHelper;
|
|
|
import org.dom4j.Element;
|
|
|
|
|
|
+@Slf4j
|
|
|
public class InMsgParaser {
|
|
|
|
|
|
private InMsgParaser() {}
|
|
|
@@ -62,7 +64,9 @@ public class InMsgParaser {
|
|
|
return parseInEvent(root, toUserName, fromUserName, createTime, msgType);
|
|
|
if ("weapp_audit_fail".equals(msgType))
|
|
|
return parseInEvent(root, toUserName, fromUserName, createTime, msgType);
|
|
|
- throw new RuntimeException("无法识别的消息类型,请查阅微信公众平台开发文档");
|
|
|
+ log.error("无法识别的消息类型,请查阅微信公众平台开发文档");
|
|
|
+ return null;
|
|
|
+ //throw new RuntimeException("无法识别的消息类型,请查阅微信公众平台开发文档");
|
|
|
}
|
|
|
|
|
|
private static InMsg parseInTextMsg(Element root, String toUserName, String fromUserName, Integer createTime, String msgType) {
|