优化内核, QQ邮箱微信账户分享,添加123请求header

This commit is contained in:
qaiu
2025-01-24 19:21:58 +08:00
parent ce0c3b3a1e
commit 339b80bbea
13 changed files with 173 additions and 38 deletions

View File

@@ -19,7 +19,9 @@ public class CacheConfigLoader {
TYPE = config.getString("type");
Integer defaultDuration = config.getInteger("defaultDuration");
DEFAULT_DURATION = defaultDuration == null ? 60 : defaultDuration;
config.getJsonObject("duration").getMap().forEach((k,v) -> {
JsonObject duration = config.getJsonObject("duration");
if (duration == null) return;
duration.getMap().forEach((k, v) -> {
if (v == null) {
CONFIGS.put(k, DEFAULT_DURATION);
} else {