mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
1654
app/schemas/io.legado.app.data.AppDatabase/49.json
Normal file
1654
app/schemas/io.legado.app.data.AppDatabase/49.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -528,8 +528,10 @@ class AnalyzeUrl(
|
||||
val domain = NetworkUtils.getSubDomain(tag ?: url)
|
||||
//书源启用保存cookie时 添加内存中的cookie到数据库
|
||||
if (enabledCookieJar) {
|
||||
CacheManager.getFromMemory("${domain}_cookieJar")?.let {
|
||||
val key = "${domain}_cookieJar"
|
||||
CacheManager.getFromMemory(key)?.let {
|
||||
CookieStore.replaceCookie(domain, it)
|
||||
CacheManager.deleteMemory(key)
|
||||
}
|
||||
}
|
||||
val cookie = CookieStore.getCookie(domain)
|
||||
|
||||
Reference in New Issue
Block a user