From 0b9455d87f2169011aba240e8f3231794b3eb3f6 Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 12 Dec 2020 21:42:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E5=A4=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt index f89af656b..00b2e4b95 100644 --- a/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt +++ b/app/src/main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt @@ -297,12 +297,14 @@ class AnalyzeUrl( RequestMethod.POST -> { if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toStrResponse().await() } else { RxHttp.postJson(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAll(body) .addAllHeader(headerMap) @@ -310,6 +312,7 @@ class AnalyzeUrl( } } else -> RxHttp.get(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) @@ -323,12 +326,14 @@ class AnalyzeUrl( RequestMethod.POST -> { if (fieldMap.isNotEmpty()) { RxHttp.postForm(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .addAllHeader(headerMap) .toByteArray().await() } else { RxHttp.postJson(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAll(body) .addAllHeader(headerMap) @@ -336,6 +341,7 @@ class AnalyzeUrl( } } else -> RxHttp.get(url) + .setAssemblyEnabled(false) .setOkClient(HttpHelper.getProxyClient(proxy)) .addAllEncoded(fieldMap) .toByteArray().await() From 46e19783c4ef3ef06ddbd386fb51cd69ce0b0dae Mon Sep 17 00:00:00 2001 From: gedoor Date: Sat, 12 Dec 2020 22:42:57 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=8D=A2=E6=BA=90=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=86=E7=BB=84=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/legado/app/ui/book/changesource/ChangeSourceDialog.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt index 59348ac86..d0f79f980 100644 --- a/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt +++ b/app/src/main/java/io/legado/app/ui/book/changesource/ChangeSourceDialog.kt @@ -182,6 +182,7 @@ class ChangeSourceDialog : BaseDialogFragment(), putPrefString("searchGroup", item.title.toString()) } viewModel.stopSearch() + viewModel.loadDbSearchBook() } } }