diff --git a/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java b/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java index 7d9367d6c7fafeb960c57c8f5f1b972720e8fe48..b19927c3d7e355b763df78daa0b0c12bb4646b20 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(); /**