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

This commit is contained in:
qaiu
2025-01-24 19:21:58 +08:00
parent 82478dc485
commit f3763b6058
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 {

View File

@@ -93,6 +93,7 @@ public class ParserApi {
return Arrays.stream(PanDomainTemplate.values()).map(pan -> new TreeMap<String, String>() {{
put("name", pan.getDisplayName());
put("type", pan.name().toLowerCase());
put("shareUrlFormat", pan.getStandardUrlTemplate());
put("url", pan.getPanDomain());
}}).collect(Collectors.toList());
}

View File

@@ -3,6 +3,7 @@ package cn.qaiu.lz.web.model;
import cn.qaiu.db.ddl.Length;
import cn.qaiu.db.ddl.Table;
import cn.qaiu.db.ddl.TableGenIgnore;
import cn.qaiu.entity.FileInfo;
import cn.qaiu.lz.common.ToJson;
import io.vertx.codegen.annotations.DataObject;
import io.vertx.core.json.JsonObject;
@@ -48,6 +49,8 @@ public class CacheLinkInfo implements ToJson {
*/
private Long expiration;
private FileInfo fileInfo;
// 使用 JsonObject 构造
public CacheLinkInfo(JsonObject json) {

View File

@@ -10,6 +10,7 @@ public class LinkInfoResp {
// 解析链接
private String downLink;
private String apiLink;
private String viewLink;
private Integer cacheHitTotal;
private Integer parserTotal;
private Integer sumTotal;