From 74d86f8cc440ffbf5f13427fd31da98d96386678 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= Date: Mon, 15 Nov 2021 19:06:44 +0800 Subject: [PATCH] :sparkler: delete useless cookieJar --- drivers/189.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/189.go b/drivers/189.go index 552c6a0d..106aa39c 100644 --- a/drivers/189.go +++ b/drivers/189.go @@ -14,9 +14,7 @@ import ( "github.com/gin-gonic/gin" "github.com/go-resty/resty/v2" log "github.com/sirupsen/logrus" - "golang.org/x/net/publicsuffix" mathRand "math/rand" - "net/http/cookiejar" "path/filepath" "regexp" "strconv" @@ -245,9 +243,9 @@ type LoginResp struct { func (c Cloud189) Login(account *model.Account) error { client, ok := client189Map[account.Name] if !ok { - cookieJar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List}) + //cookieJar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List}) client = resty.New() - client.SetCookieJar(cookieJar) + //client.SetCookieJar(cookieJar) client.SetRetryCount(3) } url := "https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https%3A%2F%2Fcloud.189.cn%2Fmain.action"