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 58d423a4..7cc545c2 100644 --- a/app/src/main/java/com/github/catvod/spider/Ali.java +++ b/app/src/main/java/com/github/catvod/spider/Ali.java @@ -287,9 +287,9 @@ public class Ali { private void getQRCode() { Data data = Data.objectFrom(OkHttpUtil.string("https://easy-token.cooluc.com/qr")); - Init.run(() -> showCode(data.getData().getCodeContent())); + if (data != null) Init.run(() -> showCode(data)); service = Executors.newScheduledThreadPool(1); - service.scheduleAtFixedRate(() -> { + if (data != null) service.scheduleAtFixedRate(() -> { JsonObject params = new JsonObject(); params.addProperty("t", data.getData().getT()); params.addProperty("ck", data.getData().getCk()); @@ -304,10 +304,10 @@ public class Ali { checkService(); } - private void showCode(String text) { + private void showCode(Data data) { FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, FrameLayout.LayoutParams.WRAP_CONTENT); params.gravity = Gravity.CENTER; - Misc.addView(view = create(text), params); + Misc.addView(view = create(data.getData().getCodeContent()), params); Init.show("請使用阿里雲盤 App 掃描二維碼"); } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index 08f4a8d9..ebf22fd3 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 0ed98216..c9f8bdb0 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -012fedf8372acec517e0d3f2cfdc4d6b +ddd9f5118f6f8882efea6591ef712cd8 diff --git a/json/adult.json b/json/adult.json index d11b3709..45a8c0b8 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;012fedf8372acec517e0d3f2cfdc4d6b", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ddd9f5118f6f8882efea6591ef712cd8", "sites": [ { "key": "AList", diff --git a/json/config.json b/json/config.json index 42edd677..782797de 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;012fedf8372acec517e0d3f2cfdc4d6b", + "spider": "https://ghproxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;ddd9f5118f6f8882efea6591ef712cd8", "sites": [ { "key": "AList",