diff --git a/app/src/main/java/com/github/catvod/spider/Ali.java b/app/src/main/java/com/github/catvod/spider/Ali.java index 9e527160..69044b68 100644 --- a/app/src/main/java/com/github/catvod/spider/Ali.java +++ b/app/src/main/java/com/github/catvod/spider/Ali.java @@ -285,7 +285,7 @@ public class Ali { if (url.endsWith("/ck")) { new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('input')[0].value", value -> saveToken(value)), 1000); } else if (url.endsWith("/qr")) { - new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('img')[0].src", value -> showQRCode(value)), 1000); + new Handler(Looper.getMainLooper()).postDelayed(() -> view.evaluateJavascript("document.getElementsByTagName('img')[0].src", value -> showQRCode(value)), 3000); } } }); @@ -300,6 +300,7 @@ public class Ali { } private void showQRCode(String value) { + if (!value.contains("base64,")) return; byte[] bytes = Base64.decode(value.split("base64,")[1], Base64.DEFAULT); FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(Misc.dp2px(250), Misc.dp2px(250)); params.gravity = Gravity.CENTER; diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 0f2c6445..994f24e0 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 1f9aeb01..34af081e 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -ada79cfb8f05a9146ecc90b844b760b9 +6aa710655b59e0b3f88a283a3c4668ec diff --git a/json/adult.json b/json/adult.json index 48c193b8..1bc71965 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ada79cfb8f05a9146ecc90b844b760b9", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6aa710655b59e0b3f88a283a3c4668ec", "sites": [ { "key": "AList", diff --git a/json/config.json b/json/config.json index b878e594..33d6a4ba 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ada79cfb8f05a9146ecc90b844b760b9", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;6aa710655b59e0b3f88a283a3c4668ec", "sites": [ { "key": "AList",