录单
This commit is contained in:
@@ -1722,17 +1722,17 @@ public class JDUtil {
|
||||
}
|
||||
|
||||
if (order.trim().isEmpty()) {
|
||||
wxUtil.sendTextMessage(fromWxid, "输入格式为:\n 单\n分销标记\n型号\n转链链接\n数量\n地址", 1, fromWxid, false);
|
||||
wxUtil.sendTextMessage(fromWxid, "输入格式为:\n 生\n分销标记\n型号\n转链链接\n数量\n地址", 1, fromWxid, false);
|
||||
return;
|
||||
}
|
||||
String[] split = order.split("\n");
|
||||
if (split.length != 6) {
|
||||
wxUtil.sendTextMessage(fromWxid, "输入格式为:\n 单\n分销标记\n型号\n转链链接\n数量\n地址", 1, fromWxid, false);
|
||||
wxUtil.sendTextMessage(fromWxid, "输入格式为:\n 生\n分销标记\n型号\n转链链接\n数量\n地址", 1, fromWxid, false);
|
||||
return;
|
||||
}
|
||||
String remark = "";
|
||||
if (!split[0].trim().replace("单", "").isEmpty()) {
|
||||
remark = split[0].trim().replace("{单}", "").replace("\n", "");
|
||||
if (!split[0].trim().replace("生", "").isEmpty()) {
|
||||
remark = split[0].trim().replace("{生}", "").replace("\n", "");
|
||||
}
|
||||
// 今天的日期
|
||||
String today = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd "));
|
||||
@@ -2299,7 +2299,7 @@ public class JDUtil {
|
||||
}
|
||||
|
||||
StringBuilder order = new StringBuilder();
|
||||
order.append("单").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(" ").append("\n").append(quantityStr).append("\n").append(address);
|
||||
order.append("生").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(" ").append("\n").append(quantityStr).append("\n").append(address);
|
||||
sendOrderToWxByOrderD(order.toString(), fromWxid);
|
||||
}
|
||||
} else if (input.startsWith("H")) {
|
||||
@@ -2391,7 +2391,7 @@ public class JDUtil {
|
||||
// 型号
|
||||
// 转链链接
|
||||
// 默认数量为1
|
||||
order.append("单\n").append("H\n") // 分销标记
|
||||
order.append("生\n").append("H\n") // 分销标记
|
||||
.append(modelNumber).append("\n") // 型号
|
||||
.append("\n") // 转链链接
|
||||
.append("1\n").append(name).append(fullAddress); // 地址+联系信息
|
||||
|
||||
@@ -108,15 +108,19 @@ public class WxMessageConsumer {
|
||||
jdUtils.manman(msg, fromWxid);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// 超级管理员内部群
|
||||
if (chatRoom_admin_inner.contains(fromWxid)) {
|
||||
if (msg.startsWith("单")) {
|
||||
logger.info("消息以单开头,处理单指令消息");
|
||||
jdUtils.sendOrderToWxByOrderD(msg.replace("单", ""), fromWxid);
|
||||
return;
|
||||
if (msg.startsWith("生")){
|
||||
logger.info("消息以生开头,处理单指令消息");
|
||||
jdUtils.sendOrderToWxByOrderD(msg.replace("生", ""), fromWxid);
|
||||
}
|
||||
}
|
||||
// 超级管理员内部群
|
||||
//if (chatRoom_admin_inner.contains(fromWxid)) {
|
||||
// if (msg.startsWith("表")) {
|
||||
// logger.info("消息以表开头,处理单指令消息");
|
||||
// jdUtils.sendOrderToWxByOrderD(msg.replace("表", ""), fromWxid);
|
||||
// return;
|
||||
// }
|
||||
//}
|
||||
// 可以对外的群聊
|
||||
if (!chatRoom_admin.contains(fromWxid) && !chatRoom_admin_pl.contains(fromWxid)) {
|
||||
logger.info("不是白名单群聊,不处理");
|
||||
|
||||
Reference in New Issue
Block a user