add sms未测试

This commit is contained in:
ZJY 2021-09-23 11:57:58 +08:00
parent 1d4c327364
commit b4f78e7cd6
2 changed files with 4 additions and 4 deletions

View File

@ -246,7 +246,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)
@ -268,11 +268,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))
}

View File

@ -225,7 +225,7 @@ var codeSignals = []CodeSignal{
},
},
{
Command: []string{"raw ^登陆$"},
Command: []string{"登录"},
Handle: func(s *Sender) interface{} {
logs.Info("进入流程")
if num := 5; len(codes) >= num {