评论
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -2063,7 +2067,7 @@ public class JDUtil {
|
||||
/**
|
||||
* 📊 发送统计信息
|
||||
*/
|
||||
if (!isTb){
|
||||
if (!isTb) {
|
||||
wxUtil.sendTextMessage(fromWxid,
|
||||
"京东评论统计:\n" +
|
||||
"型号 " + productType + "\n" +
|
||||
|
||||
Reference in New Issue
Block a user