|
|
@@ -3,10 +3,7 @@ package com.mrxu.framework.common.weixin.msg;
|
|
|
|
|
|
import com.mrxu.framework.common.util.StrFunc;
|
|
|
import com.mrxu.framework.common.weixin.msg.in.*;
|
|
|
-import com.mrxu.framework.common.weixin.msg.in.event.InFollowEvent;
|
|
|
-import com.mrxu.framework.common.weixin.msg.in.event.InLocationEvent;
|
|
|
-import com.mrxu.framework.common.weixin.msg.in.event.InMenuEvent;
|
|
|
-import com.mrxu.framework.common.weixin.msg.in.event.InQrCodeEvent;
|
|
|
+import com.mrxu.framework.common.weixin.msg.in.event.*;
|
|
|
import com.mrxu.framework.common.weixin.msg.in.speech_recognition.InSpeechRecognitionResults;
|
|
|
import org.dom4j.Document;
|
|
|
import org.dom4j.DocumentException;
|
|
|
@@ -177,6 +174,14 @@ public class InMsgParaser {
|
|
|
e.setEventKey(eventKey);
|
|
|
return e;
|
|
|
}
|
|
|
+
|
|
|
+ // 模板消息发送成功
|
|
|
+ if ("TEMPLATESENDJOBFINISH".equals(event)) {
|
|
|
+ TemplateSendJobFinishEvent e = new TemplateSendJobFinishEvent(toUserName, fromUserName, createTime, msgType);
|
|
|
+ e.setMsgId(root.elementText("MsgID"));
|
|
|
+ e.setStatus(root.elementText("Status"));
|
|
|
+ return e;
|
|
|
+ }
|
|
|
|
|
|
throw new RuntimeException("无法识别的事件类型,请查阅微信公众平台开发文档");
|
|
|
}
|