123盘expire
This commit is contained in:
parent
586b4919c7
commit
e38debf3c1
|
|
@ -49,12 +49,9 @@ object Pan123Handler {
|
|||
passwd = cache!!.user.password
|
||||
auth = cache!!.user.cookie
|
||||
expire = cache!!.user.expire
|
||||
if (expire == 0L || System.currentTimeMillis() > expire) {
|
||||
SpiderDebug.log("token已过期")
|
||||
startFlow()
|
||||
} else if (StringUtils.isNotBlank(userName) && StringUtils.isNotBlank(passwd)) {
|
||||
if (StringUtils.isBlank(auth)) {
|
||||
SpiderDebug.log("userName passwd 不为空,auth 为空")
|
||||
if (StringUtils.isNotBlank(userName) && StringUtils.isNotBlank(passwd)) {
|
||||
if (StringUtils.isBlank(auth) || expire == 0L || System.currentTimeMillis() > expire) {
|
||||
SpiderDebug.log("auth 为空或者登录已过期")
|
||||
this.loginWithPassword(userName, passwd)
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1 +1 @@
|
|||
8d1566cb9f39f6dc19f1ae7754323b28
|
||||
e08d2ec17471fa6606811286d60a1087
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;8d1566cb9f39f6dc19f1ae7754323b28",
|
||||
"spider": "https://andoridspidermt.netlify.app/jar/custom_spider.jar;md5;e08d2ec17471fa6606811286d60a1087",
|
||||
"lives": [
|
||||
{
|
||||
"name": "电视直播",
|
||||
|
|
|
|||
Loading…
Reference in New Issue