fix 解除之前临时屏蔽通知

This commit is contained in:
ZJY 2021-09-22 00:00:40 +08:00
parent 9102ce755a
commit 73983a1fdd

View File

@ -228,7 +228,7 @@ func CookieOK(ck *JdCookie) bool {
case "1001": //ck.BeanNum
if ui.Msg == "not login" {
if ck.Available == True {
//ck.Update(Available, False)
ck.Update(Available, False)
logs.Info(ck.Available)
if Config.Wskey {
@ -238,7 +238,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)
@ -260,11 +260,11 @@ func CookieOK(ck *JdCookie) bool {
}
} else {
//ck.Push(fmt.Sprintf("失效账号,%s", ck.PtPin))
ck.Push(fmt.Sprintf("失效账号,%s", ck.PtPin))
JdCookie{}.Push(fmt.Sprintf("失效账号,%s", ck.Nickname))
}
} else {
//ck.Push(fmt.Sprintf("失效账号,%s", ck.PtPin))
ck.Push(fmt.Sprintf("失效账号,%s", ck.PtPin))
JdCookie{}.Push(fmt.Sprintf("失效账号,%s", ck.Nickname))
}