From 8d1ed610f2a2a10a7173babdfed55a992aa63860 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sun, 3 Oct 2021 20:32:46 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E9=BB=91IP=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/available.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/available.go b/models/available.go index 7987574..e1dd486 100644 --- a/models/available.go +++ b/models/available.go @@ -125,7 +125,7 @@ func initCookie() { for i := range cks { if cks[i].Available == True && !CookieOK(&cks[i]) { logs.Info("开始禁用") - time.Sleep(time.Second * 120) + time.Sleep(time.Second * 60) cks[i].OutPool() } } @@ -243,7 +243,7 @@ func CookieOK(ck *JdCookie) bool { } ui := &UserInfoResult{} if nil != json.Unmarshal(data, ui) { - //(&JdCookie{}).Push("第一个接口失效,切换到第二个接口,可能黑IP") + (&JdCookie{}).Push("第一个接口失效,切换到第二个接口,可能黑IP") b2 := av2(cookie) if b2 == false { if ck.Available == True {