|
|
@ -329,11 +329,14 @@ class BookSourceEditActivity : |
|
|
|
"searchUrl" -> source.searchUrl = it.value |
|
|
|
"searchUrl" -> source.searchUrl = it.value |
|
|
|
"checkKeyWord" -> searchRule.checkKeyWord = it.value |
|
|
|
"checkKeyWord" -> searchRule.checkKeyWord = it.value |
|
|
|
"bookList" -> searchRule.bookList = it.value ?: "" |
|
|
|
"bookList" -> searchRule.bookList = it.value ?: "" |
|
|
|
"name" -> searchRule.name = viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"name" -> searchRule.name = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"author" -> searchRule.author = |
|
|
|
"author" -> searchRule.author = |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"kind" -> searchRule.kind = viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"kind" -> searchRule.kind = |
|
|
|
"intro" -> searchRule.intro = viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
|
|
|
|
"intro" -> searchRule.intro = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"updateTime" -> searchRule.updateTime = |
|
|
|
"updateTime" -> searchRule.updateTime = |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, searchRule.bookList) |
|
|
|
"wordCount" -> searchRule.wordCount = |
|
|
|
"wordCount" -> searchRule.wordCount = |
|
|
@ -350,10 +353,12 @@ class BookSourceEditActivity : |
|
|
|
when (it.key) { |
|
|
|
when (it.key) { |
|
|
|
"exploreUrl" -> source.exploreUrl = it.value |
|
|
|
"exploreUrl" -> source.exploreUrl = it.value |
|
|
|
"bookList" -> exploreRule.bookList = it.value ?: "" |
|
|
|
"bookList" -> exploreRule.bookList = it.value ?: "" |
|
|
|
"name" -> exploreRule.name = viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"name" -> exploreRule.name = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"author" -> exploreRule.author = |
|
|
|
"author" -> exploreRule.author = |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"kind" -> exploreRule.kind = viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"kind" -> exploreRule.kind = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"intro" -> exploreRule.intro = |
|
|
|
"intro" -> exploreRule.intro = |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
viewModel.ruleComplete(it.value, exploreRule.bookList) |
|
|
|
"updateTime" -> exploreRule.updateTime = |
|
|
|
"updateTime" -> exploreRule.updateTime = |
|
|
@ -374,8 +379,10 @@ class BookSourceEditActivity : |
|
|
|
"name" -> bookInfoRule.name = viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"name" -> bookInfoRule.name = viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"author" -> bookInfoRule.author = |
|
|
|
"author" -> bookInfoRule.author = |
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"kind" -> bookInfoRule.kind = viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"kind" -> bookInfoRule.kind = |
|
|
|
"intro" -> bookInfoRule.intro = viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
|
|
|
|
"intro" -> bookInfoRule.intro = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"updateTime" -> bookInfoRule.updateTime = |
|
|
|
"updateTime" -> bookInfoRule.updateTime = |
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
viewModel.ruleComplete(it.value, bookInfoRule.init) |
|
|
|
"wordCount" -> bookInfoRule.wordCount = |
|
|
|
"wordCount" -> bookInfoRule.wordCount = |
|
|
@ -406,7 +413,8 @@ class BookSourceEditActivity : |
|
|
|
} |
|
|
|
} |
|
|
|
contentEntities.forEach { |
|
|
|
contentEntities.forEach { |
|
|
|
when (it.key) { |
|
|
|
when (it.key) { |
|
|
|
"content" -> contentRule.content = viewModel.ruleComplete(it.value) |
|
|
|
"content" -> contentRule.content = |
|
|
|
|
|
|
|
viewModel.ruleComplete(it.value) |
|
|
|
"nextContentUrl" -> contentRule.nextContentUrl = |
|
|
|
"nextContentUrl" -> contentRule.nextContentUrl = |
|
|
|
viewModel.ruleComplete(it.value, type = 2) |
|
|
|
viewModel.ruleComplete(it.value, type = 2) |
|
|
|
"webJs" -> contentRule.webJs = it.value |
|
|
|
"webJs" -> contentRule.webJs = it.value |
|
|
|