1
This commit is contained in:
@@ -35,6 +35,8 @@ import java.time.ZoneId;
|
|||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.time.format.DateTimeParseException;
|
import java.time.format.DateTimeParseException;
|
||||||
import java.time.temporal.ChronoUnit;
|
import java.time.temporal.ChronoUnit;
|
||||||
|
import java.util.regex.Matcher;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@@ -616,10 +618,18 @@ public void cleanOldRedisHashData() {
|
|||||||
} else if (key.matches("jd:refresh:tag:[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}")) {
|
} else if (key.matches("jd:refresh:tag:[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}")) {
|
||||||
// 格式:jd:refresh:tag:时间
|
// 格式:jd:refresh:tag:时间
|
||||||
timePart = key.substring("jd:refresh:tag:".length());
|
timePart = key.substring("jd:refresh:tag:".length());
|
||||||
|
} else {
|
||||||
|
// 尝试更宽松的匹配,查找时间模式
|
||||||
|
String timePattern = "\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}";
|
||||||
|
Pattern pattern = Pattern.compile(timePattern);
|
||||||
|
Matcher matcher = pattern.matcher(key);
|
||||||
|
if (matcher.find()) {
|
||||||
|
timePart = matcher.group();
|
||||||
} else {
|
} else {
|
||||||
logger.warn("无法识别Redis键格式:{}", key);
|
logger.warn("无法识别Redis键格式:{}", key);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
LocalDateTime time;
|
LocalDateTime time;
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -2692,13 +2692,14 @@ public class JDUtil {
|
|||||||
address = new StringBuilder(matcher.group());
|
address = new StringBuilder(matcher.group());
|
||||||
}
|
}
|
||||||
for (int i = 3; i < parts.length; i++) {
|
for (int i = 3; i < parts.length; i++) {
|
||||||
|
System.out.println(parts[i]);
|
||||||
address.append(parts[i]);
|
address.append(parts[i]);
|
||||||
}
|
}
|
||||||
String jf = productWithJF.get(modelNumber);
|
String jf = productWithJF.get(modelNumber);
|
||||||
|
|
||||||
StringBuilder order = new StringBuilder();
|
StringBuilder order = new StringBuilder();
|
||||||
order.append("生").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(jf).append("\n").append(quantityStr).append("\n").append(address);
|
order.append("生").append("\n").append("H-TF").append("\n").append(modelNumber).append("\n").append(jf).append("\n").append(quantityStr).append("\n").append(address);
|
||||||
sendOrderToWxByOrderD(order.toString(), fromWxid);
|
//sendOrderToWxByOrderD(order.toString(), fromWxid);
|
||||||
}
|
}
|
||||||
} else if (input.startsWith("H")) {
|
} else if (input.startsWith("H")) {
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user