|
|
@ -62,6 +62,7 @@ object Backup { |
|
|
|
"readRecord.json", |
|
|
|
"readRecord.json", |
|
|
|
"searchWord.json", |
|
|
|
"searchWord.json", |
|
|
|
"subscribe.json", |
|
|
|
"subscribe.json", |
|
|
|
|
|
|
|
"cookie.json", |
|
|
|
"config.xml" |
|
|
|
"config.xml" |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
@ -163,6 +164,13 @@ object Backup { |
|
|
|
.writeText(json) |
|
|
|
.writeText(json) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
DbManager.getDaoSession().cookieBeanDao.queryBuilder().list().let { |
|
|
|
|
|
|
|
if (it.isNotEmpty()) { |
|
|
|
|
|
|
|
val json = GSON.toJson(it) |
|
|
|
|
|
|
|
FileUtils.getFile(backupPath + File.separator + "cookie.json") |
|
|
|
|
|
|
|
.writeText(json) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
try { |
|
|
|
try { |
|
|
|
val setting = SysManager.getNewSetting() |
|
|
|
val setting = SysManager.getNewSetting() |
|
|
|
val readStyles = setting.readStyles |
|
|
|
val readStyles = setting.readStyles |
|
|
|