Browse Source

更新证件照接口缓存过期时间

FanQun 2 years ago
parent
commit
a327291fa2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/rshy/project/hy/server/ItfwServer.java

+ 1 - 1
src/main/java/com/rshy/project/hy/server/ItfwServer.java

@@ -792,7 +792,7 @@ public class ItfwServer {
 
         byte[] bytes = HttpRequest.get(pctzjzpResultDTO.getZjzUrl()).timeout(200).execute().bodyBytes();
         pctzjzpResultDTO.setPhoto(Base64.encode(bytes));
-        stringRedisTemplate.opsForValue().set(cacheKey, JSON.toJSONString(pctzjzpResultDTO), DateUtil.endOfDay(DateUtil.date()).getTime() - DateUtil.date().getTime(), TimeUnit.MILLISECONDS);
+        stringRedisTemplate.opsForValue().set(cacheKey, JSON.toJSONString(pctzjzpResultDTO));//DateUtil.endOfDay(DateUtil.date()).getTime() - DateUtil.date().getTime(), TimeUnit.MILLISECONDS);
         return pctzjzpResultDTO;
     }