diff --git a/app/src/main/java/com/github/catvod/net/OkRequest.java b/app/src/main/java/com/github/catvod/net/OkRequest.java index fb176531..ded7f5b6 100644 --- a/app/src/main/java/com/github/catvod/net/OkRequest.java +++ b/app/src/main/java/com/github/catvod/net/OkRequest.java @@ -50,12 +50,12 @@ class OkRequest { } private void getInstance() { - Request.Builder builder = new Request.Builder().url(url); + Request.Builder builder = new Request.Builder(); if (method.equals(OkHttp.GET) && params != null) setParams(); if (method.equals(OkHttp.POST)) builder.post(getRequestBody()); if (header != null) for (String key : header.keySet()) builder.addHeader(key, header.get(key)); if (tag != null) builder.tag(tag); - request = builder.build(); + request = builder.url(url).build(); } private RequestBody getRequestBody() { 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 f3fbd889..828beec4 100644 --- a/app/src/main/java/com/github/catvod/spider/Ali.java +++ b/app/src/main/java/com/github/catvod/spider/Ali.java @@ -310,7 +310,7 @@ public class Ali { private void getQRCode() { HashMap headers = new HashMap<>(); headers.put("User-Agent", Misc.CHROME); - Data data = Data.objectFrom(OkHttp.string("https://easy-token.cooluc.com/qr", headers)); + Data data = Data.objectFrom(OkHttp.string("https://token.cooluc.com/qr", headers)); if (data != null) Init.run(() -> showCode(data)); service = Executors.newScheduledThreadPool(1); if (data != null) service.scheduleAtFixedRate(() -> { diff --git a/json/adult.json b/json/adult.json index 971a89be..7aa24fb5 100644 --- a/json/adult.json +++ b/json/adult.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;fb25839a41ad3ce40356acf31920373c", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4971e3aee0e802323001771e44bb1a87", "wallpaper": "https://gao.chuqiuyu.tk", "lives": [ { diff --git a/json/config.json b/json/config.json index 114ffa3d..ec16c22f 100644 --- a/json/config.json +++ b/json/config.json @@ -1,5 +1,5 @@ { - "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;fb25839a41ad3ce40356acf31920373c", + "spider": "https://gh-proxy.com/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/jar/custom_spider.jar;md5;4971e3aee0e802323001771e44bb1a87", "wallpaper": "http://www.kf666888.cn/api/tvbox/img", "lives": [ {