Update AppYs.java

This commit is contained in:
daji888 2022-03-03 16:19:18 +08:00 committed by GitHub
parent 673c08dd36
commit 270e72d4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,9 @@ public class AppYs extends Spider {
else if (type.equals("lang"))
typeN = "语言";
else if (type.equals("year"))
typeN = "年代";
typeN = "年份";
else if (type.equals("letter"))
typeN = "字母";
}
JSONObject jOne = new JSONObject();
jOne.put("key", type);
@ -210,6 +212,7 @@ public class AppYs extends Spider {
url = url.replace("筛选area", (extend != null && extend.containsKey("area")) ? extend.get("area") : "");
url = url.replace("筛选lang", (extend != null && extend.containsKey("lang")) ? extend.get("lang") : "");
url = url.replace("筛选year", (extend != null && extend.containsKey("year")) ? extend.get("year") : "");
url = url.replace("筛选letter", (extend != null && extend.containsKey("letter")) ? extend.get("letter") : "");
url = url.replace("排序", (extend != null && extend.containsKey("排序")) ? extend.get("排序") : "");
SpiderDebug.log(url);
String json = OkHttpUtil.string(url, getHeaders(url));