评论
This commit is contained in:
@@ -26,9 +26,12 @@ public class WxMessageConsumer {
|
||||
|
||||
private final JDUtil jdUtils;
|
||||
|
||||
private final OtherUtil otherUtil;
|
||||
|
||||
@Autowired
|
||||
public WxMessageConsumer(@Lazy JDUtil jdUtils) {
|
||||
public WxMessageConsumer(@Lazy JDUtil jdUtils, OtherUtil otherUtil) {
|
||||
this.jdUtils = jdUtils;
|
||||
this.otherUtil = otherUtil;
|
||||
}
|
||||
|
||||
@Async("threadPoolTaskExecutor")
|
||||
@@ -77,6 +80,10 @@ public class WxMessageConsumer {
|
||||
jdUtils.sendOrderToWxByOrderD(msg.replace("单", ""), fromWxid);
|
||||
return;
|
||||
}
|
||||
if (msg.contains("<sourcedisplayname>唐门云课</sourcedisplayname>")){
|
||||
logger.info("消息来自唐门云课,处理指令消息" );
|
||||
otherUtil.tmyk(msg,fromWxid);
|
||||
}
|
||||
logger.info("未命中前置指令,开始命中 Default 流程");
|
||||
jdUtils.sendOrderToWxByOrderDefault(msg, fromWxid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user