diff --git a/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java b/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java index 57954fc8fba8b70d7dc381df02492fb5818879c1..7d9367d6c7fafeb960c57c8f5f1b972720e8fe48 100644 --- a/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java +++ b/src/main/java/cn/bugstack/chatglm/utils/BearerTokenUtils.java @@ -22,11 +22,11 @@ import java.util.concurrent.TimeUnit; public class BearerTokenUtils { // 过期时间;默认30分钟 - private static final int expireMillis = 30 * 60 * 1000; + private static final long expireMillis = 30 * 60 * 1000L; // 缓存服务 public static Cache cache = CacheBuilder.newBuilder() - .expireAfterWrite(expireMillis - (60 * 1000), TimeUnit.MINUTES) + .expireAfterWrite(expireMillis - (60 * 1000L), TimeUnit.SECONDS) .build(); /**