diff --git a/app/src/main/java/com/github/catvod/api/UCApi.java b/app/src/main/java/com/github/catvod/api/UCApi.java index 6956a80a..d7925b15 100644 --- a/app/src/main/java/com/github/catvod/api/UCApi.java +++ b/app/src/main/java/com/github/catvod/api/UCApi.java @@ -88,6 +88,7 @@ public class UCApi { tokenCache = Cache.objectFrom(Path.read(qrCodeHandler.getCache())); this.cookieToken = tokenCache.getUser().getToken(); + SpiderDebug.log("UC初始化获取到的cookieToken: " + cookieToken); } private static class Loader { diff --git a/app/src/test/java/com/github/catvod/api/QRCodeHandlerTest.java b/app/src/test/java/com/github/catvod/api/QRCodeHandlerTest.java index 4b150559..36bb747b 100644 --- a/app/src/test/java/com/github/catvod/api/QRCodeHandlerTest.java +++ b/app/src/test/java/com/github/catvod/api/QRCodeHandlerTest.java @@ -27,6 +27,16 @@ public class QRCodeHandlerTest { } + } @Test + public void download() throws Exception { + // Mock the OkHttp.get method to return a predefined OkResult + // Execute the method under test + String result = qrCodeHandler.download(); + System.out.println(result); + while(true){ + + } + } diff --git a/jar/custom_spider.jar b/jar/custom_spider.jar index aebe020f..89031308 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 5a3da5bf..05107c28 100644 --- a/jar/custom_spider.jar.md5 +++ b/jar/custom_spider.jar.md5 @@ -1 +1 @@ -7e3b4a23f9408ca7083079849f7b6e82 +74ead8dd5a2d9e0c86d838ea7a99fd86 diff --git a/json/index.json b/json/index.json index 58c66012..d4bd2018 100644 --- a/json/index.json +++ b/json/index.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;7e3b4a23f9408ca7083079849f7b6e82", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86", "lives": [ { diff --git a/json/index1.json b/json/index1.json index 9e57a878..24fabc99 100644 --- a/json/index1.json +++ b/json/index1.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;7e3b4a23f9408ca7083079849f7b6e82", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86", "lives": [ { "name": "直播ipv6", diff --git a/json/index2.json b/json/index2.json index 9a52a775..f807e412 100644 --- a/json/index2.json +++ b/json/index2.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;7e3b4a23f9408ca7083079849f7b6e82", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86", "lives": [ { "name": "直播ipv6", diff --git a/json/test.json b/json/test.json index 5ade678f..b12a224d 100644 --- a/json/test.json +++ b/json/test.json @@ -1,5 +1,5 @@ { - "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;7e3b4a23f9408ca7083079849f7b6e82", + "spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86", "lives": [ { "name": "直播",