临时启用过期CK自动跟新

This commit is contained in:
ZJY 2021-09-04 18:20:01 +08:00
parent 2b355b5db6
commit 3fdd5c5f72
2 changed files with 1 additions and 40 deletions

View File

@ -187,6 +187,7 @@ func CookieOK(ck *JdCookie) bool {
if Cdle {
ck.Hack = True
}
(&JdCookie{}).Push("转换失败")
}
}

View File

@ -135,46 +135,6 @@ var handleMessage = func(msgs ...interface{}) interface{} {
}()
return nil
}
//ss := regexp.MustCompile(`pt_key=([^;=\s]+);pt_pin=([^;=\s]+)`).FindAllStringSubmatch(rsp, -1)
//if len(ss) > 0 {
// xyb := 0
// for _, s := range ss {
// ck := JdCookie{
// PtKey: s[1],
// PtPin: s[2],
// }
// if CookieOK(&ck) {
// xyb++
// if sender.IsQQ() {
// ck.QQ = sender.UserID
// } else if sender.IsTG() {
// ck.Telegram = sender.UserID
// }
// if nck, err := GetJdCookie(ck.PtPin); err == nil {
// nck.InPool(ck.PtKey)
// msg := fmt.Sprintf("更新账号,%s", ck.PtPin)
// (&JdCookie{}).Push(msg)
// logs.Info(msg)
// } else {
// if Cdle {
// ck.Hack = True
// }
// NewJdCookie(&ck)
// msg := fmt.Sprintf("添加账号,%s", ck.PtPin)
// sender.Reply(fmt.Sprintf(msg, AddCoin(sender.UserID)))
// logs.Info(msg)
// }
// } else {
// sender.Reply(fmt.Sprintf("无效,许愿币-1余额%d", RemCoin(sender.UserID, 1)))
// }
// }
// go func() {
// Save <- &JdCookie{}
// }()
// return nil
//}
//return rsp
}
}
{ //tyt