kunfei 3 سال پیش
والد
کامیت
d50bb75bd2
2فایلهای تغییر یافته به همراه18 افزوده شده و 7 حذف شده
  1. 14 3
      app/src/main/assets/defaultData/rssSources.json
  2. 4 4
      app/src/main/java/io/legado/app/help/config/LocalConfig.kt

+ 14 - 3
app/src/main/assets/defaultData/rssSources.json

@@ -1,8 +1,19 @@
 [
 [
   {
   {
+    "articleStyle": 0,
     "customOrder": 1,
     "customOrder": 1,
     "enableJs": true,
     "enableJs": true,
     "enabled": true,
     "enabled": true,
+    "loadWithBaseUrl": true,
+    "singleUrl": true,
+    "sourceIcon": "https://funimg.pddpic.com/ktt/762ee1c9-a117-46e4-b0c7-9d820420c08b.png.slim.png",
+    "sourceName": "我的小店",
+    "sourceUrl": "weixin://dl/business/?t=7J0aXwcqPPd"
+  },
+  {
+    "customOrder": 2,
+    "enableJs": true,
+    "enabled": true,
     "singleUrl": true,
     "singleUrl": true,
     "sourceGroup": "legado",
     "sourceGroup": "legado",
     "sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
     "sourceIcon": "https://cdn.jsdelivr.net/gh/gedoor/legado@master/app/src/main/res/mipmap-hdpi/ic_launcher.png",
@@ -10,7 +21,7 @@
     "sourceUrl": "https://www.yuque.com/legado"
     "sourceUrl": "https://www.yuque.com/legado"
   },
   },
   {
   {
-    "customOrder": 2,
+    "customOrder": 3,
     "enableJs": true,
     "enableJs": true,
     "enabled": true,
     "enabled": true,
     "singleUrl": true,
     "singleUrl": true,
@@ -20,7 +31,7 @@
     "sourceUrl": "snssdk1128://user/profile/562564899806367"
     "sourceUrl": "snssdk1128://user/profile/562564899806367"
   },
   },
   {
   {
-    "customOrder": 3,
+    "customOrder": 4,
     "enableJs": true,
     "enableJs": true,
     "enabled": true,
     "enabled": true,
     "singleUrl": true,
     "singleUrl": true,
@@ -30,7 +41,7 @@
     "sourceUrl": "https://pan.miaogongzi.net"
     "sourceUrl": "https://pan.miaogongzi.net"
   },
   },
   {
   {
-    "customOrder": 4,
+    "customOrder": 5,
     "enableJs": true,
     "enableJs": true,
     "enabled": true,
     "enabled": true,
     "singleUrl": true,
     "singleUrl": true,

+ 4 - 4
app/src/main/java/io/legado/app/help/config/LocalConfig.kt

@@ -59,16 +59,16 @@ by appCtx.getSharedPreferences("local", Context.MODE_PRIVATE) {
         get() = isLastVersion(1, "ruleHelpVersion")
         get() = isLastVersion(1, "ruleHelpVersion")
 
 
     val needUpHttpTTS: Boolean
     val needUpHttpTTS: Boolean
-        get() = !isLastVersion(5, "httpTtsVersion")
+        get() = !isLastVersion(6, "httpTtsVersion")
 
 
     val needUpTxtTocRule: Boolean
     val needUpTxtTocRule: Boolean
-        get() = !isLastVersion(2, "txtTocRuleVersion")
+        get() = !isLastVersion(3, "txtTocRuleVersion")
 
 
     val needUpRssSources: Boolean
     val needUpRssSources: Boolean
-        get() = !isLastVersion(4, "rssSourceVersion")
+        get() = !isLastVersion(5, "rssSourceVersion")
 
 
     val needUpDictRule: Boolean
     val needUpDictRule: Boolean
-        get() = !isLastVersion(1, "needUpDictRule")
+        get() = !isLastVersion(2, "needUpDictRule")
 
 
     var versionCode
     var versionCode
         get() = getLong(versionCodeKey, 0)
         get() = getLong(versionCodeKey, 0)