mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
优化内核, QQ邮箱微信账户分享,添加123请求header
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user