This commit is contained in:
Van0313
2025-07-13 13:01:10 +08:00
parent 9b457d25eb
commit af08e1b5fb

View File

@@ -1780,7 +1780,11 @@ public class JDUtil {
// 思路是将地址解析出来,保存到 Redis 中,并设置过期时间为 24 小时。
String address = split[5].trim();
String addressKey = "address:" + address;
if (redisTemplate.opsForValue().get(addressKey) != null) {
String addressRedisValue = redisTemplate.opsForValue().get(addressKey);
if (addressRedisValue != null) {
if (addressRedisValue.contains("李波") || addressRedisValue.contains("吴胜硕") || addressRedisValue.contains("小硕硕")) {
return;
}
for (int i = 0; i < 5; i++) {
wxUtil.sendTextMessage(fromWxid, "[炸弹] [炸弹] [炸弹] 此地址已经存在,请勿重复生成订单 [炸弹] [炸弹] [炸弹] ", 1, fromWxid, false);
}