mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 11:35:12 +08:00
update 首页订单列表数据更换接口
This commit is contained in:
@@ -116,11 +116,11 @@ public class AgentDevService {
|
||||
}
|
||||
String redisKey = CacheConstants.COMPONENT_VERIFY_TICKET + PLATFORM_APP_ID;
|
||||
// 查缓存,看是否已经过期
|
||||
String verifyTicket = redisCache.getCacheObject(redisKey);
|
||||
if (verifyTicket != null) {
|
||||
// 先删除旧缓存
|
||||
redisCache.deleteObject(redisKey);
|
||||
}
|
||||
// String verifyTicket = redisCache.getCacheObject(redisKey);
|
||||
// if (verifyTicket != null) {
|
||||
// // 先删除旧缓存
|
||||
// redisCache.deleteObject(redisKey);
|
||||
// }
|
||||
// 存入Redis 过期时间: 官方12小时,但十分钟推送一次, 因此可设置 20 分钟过期
|
||||
redisCache.setCacheObject(redisKey, componentVerifyTicket, 20, TimeUnit.MINUTES);
|
||||
String newVerifyTicket = redisCache.getCacheObject(redisKey);
|
||||
|
||||
Reference in New Issue
Block a user