add - Upyso89

This commit is contained in:
yangqiang3504
2022-09-05 17:07:36 +08:00
parent 4689e2a2f2
commit abf47995ae
2 changed files with 2 additions and 2 deletions
@@ -25,7 +25,7 @@ public class Base64Utils {
JSONObject o = null, o2 = null;
JSONObject jsonObject2 = jsonObject.getJSONObject("result"),oc = null;
JSONArray array = jsonObject2.getJSONArray("items"), ac2 = new JSONArray();
int z = 11, f=0;
int z = 15, f=0;
int len = array.length() > z ? z : array.length();
for (int i = 1; i < len; i++) {
o2 = new JSONObject();
@@ -45,7 +45,7 @@ public class Upyunso extends Spider {
try {
JSONArray jSONArray = new JSONArray();
key = URLEncoder.encode(key);
JSONArray arr = Base64Utils.getJSONByUrl("https://api.upyunso.com/search?keyword=" + key);
JSONArray arr = Base64Utils.getJSONByUrl("https://api.upyunso.com/search?keyword=" + key+"&page=1");
if (arr.length() > 0) {
String pic = "http://image.xinjun58.com/image/tv/ups.jpg";
for (int i = 0; i < arr.length(); i++) {