Add back url

master^2
fengyuecanzhu 2 years ago
parent ac894e49ce
commit c805ef309c
No known key found for this signature in database
GPG Key ID: 04B78AD06A9D6E6C
  1. 3
      app/src/main/java/xyz/fycz/myreader/common/URLCONST.java
  2. 4
      app/src/main/java/xyz/fycz/myreader/util/utils/OkHttpUtils.java
  3. 3
      dynamic/src/main/java/xyz/fycz/dynamic/fix/App246Fix5.kt

@ -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");

@ -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");
}

@ -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"
)

Loading…
Cancel
Save