99import java .util .regex .Pattern ;
1010
1111import me .chanjar .weixin .enterprise .bean .WxCpXmlMessage ;
12- import me .chanjar .weixin .enterprise .bean .WxXmlOutMessage ;
12+ import me .chanjar .weixin .enterprise .bean .WxCpXmlOutMessage ;
1313
1414/**
1515 * <pre>
@@ -57,7 +57,7 @@ public Rule rule() {
5757 * 处理微信消息
5858 * @param wxMessage
5959 */
60- public WxXmlOutMessage route (final WxCpXmlMessage wxMessage ) {
60+ public WxCpXmlOutMessage route (final WxCpXmlMessage wxMessage ) {
6161 final List <Rule > matchRules = new ArrayList <Rule >();
6262 // 收集匹配的规则
6363 for (final Rule rule : rules ) {
@@ -86,7 +86,7 @@ public void run() {
8686 return null ;
8787 }
8888
89- WxXmlOutMessage res = null ;
89+ WxCpXmlOutMessage res = null ;
9090 for (final Rule rule : matchRules ) {
9191 // 返回最后一个匹配规则的结果
9292 res = rule .service (wxMessage );
@@ -270,7 +270,7 @@ protected boolean test(WxCpXmlMessage wxMessage) {
270270 * @param wxMessage
271271 * @return true 代表继续执行别的router,false 代表停止执行别的router
272272 */
273- protected WxXmlOutMessage service (WxCpXmlMessage wxMessage ) {
273+ protected WxCpXmlOutMessage service (WxCpXmlMessage wxMessage ) {
274274 Map <String , Object > context = new HashMap <String , Object >();
275275 // 如果拦截器不通过
276276 for (WxCpMessageInterceptor interceptor : this .interceptors ) {
@@ -280,7 +280,7 @@ protected WxXmlOutMessage service(WxCpXmlMessage wxMessage) {
280280 }
281281
282282 // 交给handler处理
283- WxXmlOutMessage res = null ;
283+ WxCpXmlOutMessage res = null ;
284284 for (WxCpMessageHandler handler : this .handlers ) {
285285 // 返回最后handler的结果
286286 res = handler .handle (wxMessage , context );
0 commit comments