|
|
|
@ -62,6 +62,7 @@ object Backup { |
|
|
|
|
"readRecord.json", |
|
|
|
|
"searchWord.json", |
|
|
|
|
"subscribe.json", |
|
|
|
|
"cookie.json", |
|
|
|
|
"config.xml" |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
@ -163,6 +164,13 @@ object Backup { |
|
|
|
|
.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 { |
|
|
|
|
val setting = SysManager.getNewSetting() |
|
|
|
|
val readStyles = setting.readStyles |
|
|
|
|