Compare commits
2 Commits
259607949c
...
55596ae9e5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55596ae9e5 | ||
|
|
f13e6119d3 |
@@ -1782,7 +1782,7 @@ public class JDUtil {
|
|||||||
String addressKey = "address:" + address;
|
String addressKey = "address:" + address;
|
||||||
String addressRedisValue = redisTemplate.opsForValue().get(addressKey);
|
String addressRedisValue = redisTemplate.opsForValue().get(addressKey);
|
||||||
if (addressRedisValue != null) {
|
if (addressRedisValue != null) {
|
||||||
logger.info("address {}", addressRedisValue);
|
logger.info("address {}", addressKey);
|
||||||
if (addressRedisValue.contains("李波") || addressRedisValue.contains("吴胜硕") || addressRedisValue.contains("小硕硕")) {
|
if (addressRedisValue.contains("李波") || addressRedisValue.contains("吴胜硕") || addressRedisValue.contains("小硕硕")) {
|
||||||
} else {
|
} else {
|
||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
@@ -1792,7 +1792,7 @@ public class JDUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
redisTemplate.opsForValue().set(addressKey, "1", 1, TimeUnit.DAYS);
|
redisTemplate.opsForValue().set(addressKey, addressRedisValue, 1, TimeUnit.DAYS);
|
||||||
|
|
||||||
// 先一次性增加计数器,并设置到 Redis(原子性操作)
|
// 先一次性增加计数器,并设置到 Redis(原子性操作)
|
||||||
int startCount = count + 1;
|
int startCount = count + 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user