重构评论

This commit is contained in:
Van0313
2025-05-06 11:50:40 +08:00
parent e74eeba527
commit 0d10b3583e
2 changed files with 7 additions and 7 deletions

View File

@@ -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);

View File

@@ -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);