记得上下班打卡 | git大法好,push需谨慎

Commit 4dac1e1a authored by jiangxiulong's avatar jiangxiulong

test

parent 9d58a536
package com.liquidnet.service.sweet.config; package com.liquidnet.service.sweet.config;
import com.liquidnet.service.sweet.handler.StrawberryPosterHandler; import com.liquidnet.service.sweet.handler.*;
import com.liquidnet.service.sweet.handler.SubscribeHandler;
import com.liquidnet.service.sweet.handler.TextMsgHandler;
import com.liquidnet.service.sweet.handler.UnsubscribeHandler;
import me.chanjar.weixin.common.api.WxConsts; import me.chanjar.weixin.common.api.WxConsts;
import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker; import me.chanjar.weixin.common.api.WxMessageInMemoryDuplicateChecker;
import me.chanjar.weixin.common.redis.RedisTemplateWxRedisOps; import me.chanjar.weixin.common.redis.RedisTemplateWxRedisOps;
...@@ -70,6 +67,8 @@ public class WechatMpConfigure { ...@@ -70,6 +67,8 @@ public class WechatMpConfigure {
private StrawberryPosterHandler posterHandler; private StrawberryPosterHandler posterHandler;
@Autowired @Autowired
private TextMsgHandler textMsgHandler; private TextMsgHandler textMsgHandler;
@Autowired
private TestMsgHandler testMsgHandler;
@PostConstruct @PostConstruct
public void init() { public void init() {
...@@ -153,6 +152,12 @@ public class WechatMpConfigure { ...@@ -153,6 +152,12 @@ public class WechatMpConfigure {
.handler(textMsgHandler) .handler(textMsgHandler)
.end(); .end();
// 测试
router.rule().async(false).msgType(WxConsts.XmlMsgType.TEXT)
.content("112233")
.handler(testMsgHandler)
.end();
return router; return router;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment