This commit is contained in:
kunfei
2022-05-13 08:18:39 +08:00
parent 24f9c7e193
commit d4761bd992
2 changed files with 1657 additions and 1 deletions
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)