|
|
@ -75,8 +75,12 @@ object OldRule { |
|
|
|
nextTocUrl = jsonItem.readString("ruleChapterUrlNext") |
|
|
|
nextTocUrl = jsonItem.readString("ruleChapterUrlNext") |
|
|
|
) |
|
|
|
) |
|
|
|
ruleToc = GSON.toJson(chapterRule) |
|
|
|
ruleToc = GSON.toJson(chapterRule) |
|
|
|
|
|
|
|
var content = jsonItem.readString("ruleBookContent") ?: "" |
|
|
|
|
|
|
|
if (content.startsWith("$") && !content.startsWith("$.")) { |
|
|
|
|
|
|
|
content = content.substring(1) |
|
|
|
|
|
|
|
} |
|
|
|
val contentRule = ContentRule( |
|
|
|
val contentRule = ContentRule( |
|
|
|
content = jsonItem.readString("ruleBookContent"), |
|
|
|
content = content, |
|
|
|
nextContentUrl = jsonItem.readString("ruleContentUrlNext") |
|
|
|
nextContentUrl = jsonItem.readString("ruleContentUrlNext") |
|
|
|
) |
|
|
|
) |
|
|
|
ruleContent = GSON.toJson(contentRule) |
|
|
|
ruleContent = GSON.toJson(contentRule) |
|
|
|