From 5ea80c6b48141b809c1eeaecf35baf8bbe65f30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=82=85=E5=93=A5?= <184172133@qq.com> Date: Sat, 11 Nov 2023 20:19:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9ATimeUnit.MILLISECONDS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java b/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java index 7d9367d..b19927c 100644 --- a/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java +++ b/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java @@ -26,7 +26,7 @@ public class BearerTokenUtils { // 缓存服务 public static Cache cache = CacheBuilder.newBuilder() - .expireAfterWrite(expireMillis - (60 * 1000L), TimeUnit.SECONDS) + .expireAfterWrite(expireMillis - (60 * 1000L), TimeUnit.MILLISECONDS) .build(); /** -- GitLab