ucToken
This commit is contained in:
parent
0fce97bcb8
commit
a426ce7868
|
|
@ -87,7 +87,7 @@ public class UCApi {
|
||||||
cache = Cache.objectFrom(Path.read(getCache()));
|
cache = Cache.objectFrom(Path.read(getCache()));
|
||||||
tokenCache = Cache.objectFrom(Path.read(qrCodeHandler.getCache()));
|
tokenCache = Cache.objectFrom(Path.read(qrCodeHandler.getCache()));
|
||||||
|
|
||||||
this.cookieToken = tokenCache.getUser().getToken();
|
this.cookieToken = tokenCache.getUser().getCookie();
|
||||||
SpiderDebug.log("UC初始化获取到的cookieToken: " + cookieToken);
|
SpiderDebug.log("UC初始化获取到的cookieToken: " + cookieToken);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.github.catvod.bean.uc;
|
||||||
|
|
||||||
import com.github.catvod.api.UCApi;
|
import com.github.catvod.api.UCApi;
|
||||||
import com.github.catvod.api.UCTokenHandler;
|
import com.github.catvod.api.UCTokenHandler;
|
||||||
|
import com.github.catvod.crawler.SpiderDebug;
|
||||||
import com.github.catvod.spider.Init;
|
import com.github.catvod.spider.Init;
|
||||||
import com.github.catvod.utils.Path;
|
import com.github.catvod.utils.Path;
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
|
|
@ -14,6 +15,7 @@ public class Cache {
|
||||||
|
|
||||||
|
|
||||||
public static Cache objectFrom(String str) {
|
public static Cache objectFrom(String str) {
|
||||||
|
SpiderDebug.log("Cache.objectFrom: " + str);
|
||||||
Cache item = new Gson().fromJson(str, Cache.class);
|
Cache item = new Gson().fromJson(str, Cache.class);
|
||||||
return item == null ? new Cache() : item;
|
return item == null ? new Cache() : item;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,9 @@ public class User {
|
||||||
|
|
||||||
@SerializedName("cookie")
|
@SerializedName("cookie")
|
||||||
private String cookie;
|
private String cookie;
|
||||||
@SerializedName("token")
|
|
||||||
private String token;
|
|
||||||
|
|
||||||
public String getToken() {
|
|
||||||
return token;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setToken(String token) {
|
|
||||||
this.token = token;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCookie() {
|
public String getCookie() {
|
||||||
return cookie;
|
return cookie;
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
74ead8dd5a2d9e0c86d838ea7a99fd86
|
c43b84fbcffcaa6a1b0bea6134088001
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;c43b84fbcffcaa6a1b0bea6134088001",
|
||||||
"lives": [
|
"lives": [
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;c43b84fbcffcaa6a1b0bea6134088001",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;c43b84fbcffcaa6a1b0bea6134088001",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播ipv6",
|
"name": "直播ipv6",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;74ead8dd5a2d9e0c86d838ea7a99fd86",
|
"spider": "https://androidcatvodspider.netlify.app/jar/custom_spider.jar;md5;c43b84fbcffcaa6a1b0bea6134088001",
|
||||||
"lives": [
|
"lives": [
|
||||||
{
|
{
|
||||||
"name": "直播",
|
"name": "直播",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue