天意密码登录
This commit is contained in:
parent
06f548d89b
commit
745374a55d
|
|
@ -19,7 +19,7 @@ import java.util.Map;
|
|||
|
||||
public class SimpleCookieJar {
|
||||
private Map<String, Map<String, String>> cookieStore = new HashMap<>();
|
||||
private final Cache cache;
|
||||
|
||||
|
||||
public Map<String, Map<String, String>> getCookieStore() {
|
||||
return cookieStore;
|
||||
|
|
@ -30,18 +30,10 @@ public class SimpleCookieJar {
|
|||
}
|
||||
|
||||
public SimpleCookieJar() {
|
||||
this.cache = Cache.objectFrom(Path.read(getCache()));
|
||||
String cookieStr = cache.getUser().getCookie();
|
||||
if (StringUtils.isNoneBlank(cookieStr)) {
|
||||
JsonObject cookieJson = Json.safeObject(cookieStr);
|
||||
setGlobalCookie(cookieJson);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public File getCache() {
|
||||
return Path.tv("tianyi");
|
||||
}
|
||||
|
||||
|
||||
public void saveFromResponse(String url, List<String> cookies) {
|
||||
|
|
@ -70,7 +62,6 @@ public class SimpleCookieJar {
|
|||
|
||||
|
||||
cookieStore.put(httpUrl.host(), oldCookies);
|
||||
cache.setTianyiUser(User.objectFrom(Json.toJson(cookieStore)));
|
||||
SpiderDebug.log(" cookieStore now: " + Json.toJson(cookieStore));
|
||||
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
f520500954f8a1f291941383c6eeae0d
|
||||
4c2fa8610aa92a6eda9398f05d38bc1c
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/tianyiPassword/jar/custom_spider.jar;md5;f520500954f8a1f291941383c6eeae0d",
|
||||
"spider": "https://ghproxy.net/https://raw.githubusercontent.com/lushunming/AndroidCatVodSpider/refs/heads/tianyiPassword/jar/custom_spider.jar;md5;4c2fa8610aa92a6eda9398f05d38bc1c",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue