fix 重大参数错误

This commit is contained in:
ZJY 2021-09-18 23:41:41 +08:00
parent 36f8e1d3ee
commit 037b681197

View File

@ -214,11 +214,12 @@ func CookieOK(ck *JdCookie) bool {
JdCookie{}.Push(fmt.Sprintf("自动转换wskey---%s", msg))
ptKey := FetchJdCookieValue("pt_key", msg)
ptPin := FetchJdCookieValue("pt_pin", msg)
logs.Info(ptPin)
ck := JdCookie{
PtKey: ptKey,
PtPin: ptPin,
}
if nck, err := GetJdCookie(ck.PtPin); err == nil {
if nck, err := GetJdCookie(ptPin); err == nil {
nck.InPool(ck.PtKey)
msg := fmt.Sprintf("更新账号,%s", ck.PtPin)
(&JdCookie{}).Push(msg)