From c805ef309c3bd957c496575b669fcbbe5ce5d281 Mon Sep 17 00:00:00 2001 From: fengyuecanzhu <1021300691@qq.com> Date: Tue, 2 Aug 2022 17:54:55 +0800 Subject: [PATCH] Add back url --- app/src/main/java/xyz/fycz/myreader/common/URLCONST.java | 3 ++- .../main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java | 4 +++- dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/xyz/fycz/myreader/common/URLCONST.java b/app/src/main/java/xyz/fycz/myreader/common/URLCONST.java index bda9661..bc649f3 100644 --- a/app/src/main/java/xyz/fycz/myreader/common/URLCONST.java +++ b/app/src/main/java/xyz/fycz/myreader/common/URLCONST.java @@ -56,7 +56,8 @@ public class URLCONST { public static final String QUOTATION = "https://v1.hitokoto.cn/?encode=json&charset=utf-8"; - public static final String DEFAULT_PLUGIN_CONFIG_URL = "https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/Plugin/release/config_FYReader.json"; + //public static final String DEFAULT_PLUGIN_CONFIG_URL = "https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/Plugin/release/config_FYReader.json"; + public static final String DEFAULT_PLUGIN_CONFIG_URL = "http://101.43.83.105:3000/fengyue/FYReader-Res/raw/branch/main/Plugin/release/config_FYReader.json"; public static String getDefaultDomain() { return SharedPreUtils.getInstance().getString("domain", "fycz.me"); diff --git a/app/src/main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java b/app/src/main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java index 982c5c6..e484729 100644 --- a/app/src/main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java +++ b/app/src/main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java @@ -214,7 +214,9 @@ public class OkHttpUtils { } public static String getBakUpdateInfo() throws IOException { - return OkHttpUtils.getHtml("https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/FYReader-Update/" + + return OkHttpUtils.getHtml( + //"https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/FYReader-Update/" + + "http://101.43.83.105:3000/fengyue/FYReader-Res/raw/branch/main/Plugin/" + (App.isDebug() ? "debug" : "release") + "/content.txt"); } diff --git a/dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt b/dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt index 9d626b5..8c85034 100644 --- a/dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt +++ b/dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt @@ -200,7 +200,8 @@ class App246Fix5 : AppFixHandle { @Throws(IOException::class) fun getBakUpdateInfo(): String { return OkHttpUtils.getHtml( - "https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/FYReader-Update/" + + //"https://gitlab.com/fengyuecanzhu/fyreader-resource/-/raw/main/FYReader-Update/" + + "http://101.43.83.105:3000/fengyue/FYReader-Res/raw/branch/main/Plugin/" + (if (App.isDebug()) "debug" else "release") + "/content.txt" )