fix 多次失效

This commit is contained in:
ZJY 2021-09-19 11:38:08 +08:00
parent c7ff2c221e
commit df89df5c96

View File

@ -222,7 +222,7 @@ func CookieOK(ck *JdCookie) bool {
JdCookie{}.Push(fmt.Sprintf("自动转换wskey---%s", msg))
//缺少错误判断
if strings.Contains(msg, "错误") {
ck.Push(fmt.Sprintf("Wskey失效账号%s", ck.PtPin))
//ck.Push(fmt.Sprintf("Wskey失效账号%s", ck.PtPin))
(&JdCookie{}).Push(fmt.Sprintf("Wskey失效%s", ck.PtPin))
} else {
ptKey := FetchJdCookieValue("pt_key", msg)