From 2d96186d9212cb7d8d4016e8ed02c7d456f65747 Mon Sep 17 00:00:00 2001 From: gedoor Date: Wed, 7 Oct 2020 14:33:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/updateLog.md | 3 ++- .../main/java/io/legado/app/model/analyzeRule/AnalyzeUrl.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index 60efe4609..bb8f36132 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -3,13 +3,14 @@ * 关注合作公众号 **[小说拾遗]()** 获取好看的小说。 - 旧版数据导入教程:先在旧版阅读(2.x)中进行备份,然后在新版阅读(3.x)【我的】->【备份与恢复】,选择【导入旧版本数据】。 -**2020/10/06** +**2020/10/07** * 更新时预下载10章 * 支持更多分组 * url添加js参数,解析url时执行,可在访问url时处理url,例 ``` https://www.baidu.com,{"js":"java.headerMap.put('xxx', 'yyy')"} ``` +* 修复bug **2020/10/02** * 优化规则解析 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 f9f7ec11e..90cff8f4d 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 @@ -261,7 +261,7 @@ class AnalyzeUrl( private fun evalJS( jsStr: String, result: Any? = null - ): Any { + ): Any? { val bindings = SimpleBindings() bindings["java"] = this bindings["page"] = page