优化
This commit is contained in:
1 parent
60ceaf74ac
commit
ef5a4d45eb
2 files changed
+1657
-1
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -528,8 +528,10 @@ class AnalyzeUrl(
|
|||||||
val domain = NetworkUtils.getSubDomain(tag ?: url)
|
val domain = NetworkUtils.getSubDomain(tag ?: url)
|
||||||
//书源启用保存cookie时 添加内存中的cookie到数据库
|
//书源启用保存cookie时 添加内存中的cookie到数据库
|
||||||
if (enabledCookieJar) {
|
if (enabledCookieJar) {
|
||||||
CacheManager.getFromMemory("${domain}_cookieJar")?.let {
|
val key = "${domain}_cookieJar"
|
||||||
|
CacheManager.getFromMemory(key)?.let {
|
||||||
CookieStore.replaceCookie(domain, it)
|
CookieStore.replaceCookie(domain, it)
|
||||||
|
CacheManager.deleteMemory(key)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
val cookie = CookieStore.getCookie(domain)
|
val cookie = CookieStore.getCookie(domain)
|
||||||
|
|||||||
Reference in new issue
Block a user