重构评论
This commit is contained in:
@@ -1639,7 +1639,7 @@ public class JDUtil {
|
|||||||
logger.info("sendOrderToWxByOrderP.order {}", order);
|
logger.info("sendOrderToWxByOrderP.order {}", order);
|
||||||
// 检查是否命中“评”指令
|
// 检查是否命中“评”指令
|
||||||
UserInteractionState state = null;
|
UserInteractionState state = null;
|
||||||
if ("".equals(order)) {
|
if (!productTypeMap.containsKey(order.trim())) {
|
||||||
// 初始化用户交互状态
|
// 初始化用户交互状态
|
||||||
String key = INTERACTION_STATE_PREFIX + fromWxid;
|
String key = INTERACTION_STATE_PREFIX + fromWxid;
|
||||||
state = loadOrCreateState(key);
|
state = loadOrCreateState(key);
|
||||||
|
|||||||
@@ -123,13 +123,13 @@ public class WxMessageConsumer {
|
|||||||
logger.info("不是白名单群聊,不处理");
|
logger.info("不是白名单群聊,不处理");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (msg.startsWith("评")) {
|
|
||||||
if (("47484514467@chatroom".equals(fromWxid))) {
|
if (("47484514467@chatroom".equals(fromWxid))) {
|
||||||
logger.info("消息以评开头,处理评价指令消息");
|
logger.info("消息以评开头,处理评价指令消息");
|
||||||
jdUtils.sendOrderToWxByOrderP(msg.replace("评", ""), fromWxid);
|
jdUtils.sendOrderToWxByOrderP(msg.replace("评", ""), fromWxid);
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.info("未命中前置指令,开始命中 Default 流程");
|
logger.info("未命中前置指令,开始命中 Default 流程");
|
||||||
jdUtils.sendOrderToWxByOrderDefault(msg, fromWxid);
|
jdUtils.sendOrderToWxByOrderDefault(msg, fromWxid);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user