add - yiso678

This commit is contained in:
yangqiang3504
2022-09-08 14:06:12 +08:00
parent b9f13039c7
commit 0d22b707ca
2 changed files with 1 additions and 5 deletions
@@ -70,6 +70,7 @@ public class PushAgent extends Spider {
getToken(tk); getToken(tk);
} }
Misc.type = Misc.siteRule.optInt("ua", 1); Misc.type = Misc.siteRule.optInt("ua", 1);
Misc.btype = Misc.siteRule.optString("btype", "N");
} }
return jo; return jo;
} }
@@ -45,11 +45,6 @@ public class Upyunso extends Spider {
@Override @Override
public String searchContent(String key, boolean z) { public String searchContent(String key, boolean z) {
try { try {
if (key.equals("000")) {
Misc.btype="N";
}if (key.equals("111")) {
Misc.btype="Y";
}
JSONArray jSONArray = new JSONArray(); JSONArray jSONArray = new JSONArray();
key = URLEncoder.encode(key); key = URLEncoder.encode(key);
JSONArray arr = Base64Utils.getJSONByUrl("https://api.upyunso.com/search?keyword=" + key+"&page=1"); JSONArray arr = Base64Utils.getJSONByUrl("https://api.upyunso.com/search?keyword=" + key+"&page=1");