mirror of
https://github.com/qaiu/netdisk-fast-download.git
synced 2025-12-16 12:23:03 +00:00
parser发布到maven central方便开发者依赖, pom文件结构调整
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package cn.qaiu.lz.common.cache;
|
||||
|
||||
import cn.qaiu.parser.PanDomainTemplate;
|
||||
import io.vertx.core.json.JsonObject;
|
||||
|
||||
import java.util.HashMap;
|
||||
@@ -30,9 +29,6 @@ public class CacheConfigLoader {
|
||||
});
|
||||
}
|
||||
|
||||
public static Integer getDuration(PanDomainTemplate pdt) {
|
||||
return CONFIGS.get(pdt.name().toLowerCase());
|
||||
}
|
||||
public static Integer getDuration(String type) {
|
||||
String key = type.toLowerCase();
|
||||
return CONFIGS.getOrDefault(key, -1);
|
||||
|
||||
Reference in New Issue
Block a user