diff --git a/app/src/main/java/com/github/catvod/ali/API.java b/app/src/main/java/com/github/catvod/ali/API.java index ff17bdad..fb552f6b 100644 --- a/app/src/main/java/com/github/catvod/ali/API.java +++ b/app/src/main/java/com/github/catvod/ali/API.java @@ -135,7 +135,9 @@ public class API { private String post(String url, JSONObject body) { url = url.startsWith("https") ? url : "https://api.aliyundrive.com/" + url; - return OkHttp.postJson(url, body.toString(), getHeader()).getBody(); + OkResult result = OkHttp.postJson(url, body.toString(), getHeader()); + SpiderDebug.log(result.getCode() + "," + url + "," + result.getBody()); + return result.getBody(); } private String auth(String url, String json, boolean retry) { @@ -192,7 +194,6 @@ public class API { body.put("grant_type", "refresh_token"); String result = post("https://auth.aliyundrive.com/v2/account/token", body); user = User.objectFrom(result).save(); - SpiderDebug.log(user.toString()); if (user.getAccessToken().isEmpty()) throw new Exception(result); return true; } catch (Exception e) { @@ -355,7 +356,6 @@ public class API { body.put("file_id", tempIds.get(0)); body.put("drive_id", user.getDriveId()); String json = oauth("openFile/getDownloadUrl", body.toString(), true); - SpiderDebug.log(json); return new JSONObject(json).getString("url"); } catch (Exception e) { e.printStackTrace(); @@ -375,7 +375,6 @@ public class API { body.put("category", "live_transcoding"); body.put("url_expire_sec", "14400"); String json = oauth("openFile/getVideoPreviewPlayInfo", body.toString(), true); - SpiderDebug.log(json); JSONArray taskList = new JSONObject(json).getJSONObject("video_preview_play_info").getJSONArray("live_transcoding_task_list"); return getPreviewQuality(taskList, flag); } catch (Exception e) { diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 229341c1..bcfa0e3d 100644 Binary files a/jar/custom_spider.jar and b/jar/custom_spider.jar differ diff --git a/jar/custom_spider.jar.md5 b/jar/custom_spider.jar.md5 index 0f6420e5..d9930153 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -77633695c1b9eb30846e021f48424a6d +89ad2d897321d371d01075fec070484b