From 4bdbb4aadd4302657774a5e6e6740e8d07668ba9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 21 Oct 2019 11:03:04 +0800 Subject: [PATCH] up --- .../java/io/legado/app/data/entities/BookSource.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/io/legado/app/data/entities/BookSource.kt b/app/src/main/java/io/legado/app/data/entities/BookSource.kt index fc79db4c5..fd5053f02 100644 --- a/app/src/main/java/io/legado/app/data/entities/BookSource.kt +++ b/app/src/main/java/io/legado/app/data/entities/BookSource.kt @@ -21,14 +21,14 @@ import javax.script.SimpleBindings @Parcelize @Entity( - tableName = "book_sources", - indices = [(Index(value = ["bookSourceUrl"], unique = false))] + tableName = "book_sources", + indices = [(Index(value = ["bookSourceUrl"], unique = false))] ) data class BookSource( var bookSourceName: String = "", // 名称 var bookSourceGroup: String? = null, // 分组 @PrimaryKey - var bookSourceUrl: String = "", // 地址,包括 http/https + var bookSourceUrl: String = "", // 地址,包括 http/https var bookSourceType: Int = 0, // 类型,0 文本,1 音频 var bookUrlPattern: String? = null, var customOrder: Int = 0, // 手动排序编号 @@ -78,8 +78,8 @@ data class BookSource( AppConst.SCRIPT_ENGINE.eval(it.substring(4, it.lastIndexOf("<"))).toString() else -> it } - GSON.fromJsonObject>(header1)?.let { headers -> - headerMap.putAll(headers) + GSON.fromJsonObject>(header1)?.let { map -> + headerMap.putAll(map) } } return headerMap