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 5069e26..5711614 100644 --- a/app/src/main/java/com/github/catvod/ali/API.java +++ b/app/src/main/java/com/github/catvod/ali/API.java @@ -157,7 +157,7 @@ public class API { try { JSONObject body = new JSONObject(); String token = auth.getRefreshToken(); - if (token.startsWith("http")) token = OkHttp.string(token); + if (token.startsWith("http")) token = OkHttp.string(token).replaceAll("[^A-Za-z0-9]", ""); body.put("refresh_token", token); body.put("grant_type", "refresh_token"); JSONObject object = new JSONObject(post("https://auth.aliyundrive.com/v2/account/token", body)); diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index b72e1bd..a377289 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 cc28dd6..32e4311 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -77583727515336727d2b5281b201f084 +1862134a5028c5720a5c9eb24245144a