tg 测试版

This commit is contained in:
ZJY 2021-09-08 00:23:25 +08:00
parent 3e8ee7626b
commit f11fafdfed
3 changed files with 1106 additions and 4 deletions

View File

@ -143,7 +143,7 @@ func updateCookie() {
if len(cks[i].WsKey) > 0 {
time.Sleep(10 * time.Second)
ck := cks[i]
JdCookie{}.Push(fmt.Sprintf("更新账号账号,%s", ck.Nickname))
//JdCookie{}.Push(fmt.Sprintf("更新账号账号,%s", ck.Nickname))
var pinky = fmt.Sprintf("pin=%s;wskey=%s;", ck.PtPin, ck.WsKey)
rsp := cmd(fmt.Sprintf(`python3 test.py "%s"`, pinky), &Sender{})
logs.Info(rsp)

View File

@ -184,13 +184,12 @@ var codeSignals = []CodeSignal{
},
},
{
Command: []string{"更新账号"},
Command: []string{"账号更新"},
Admin: true,
Handle: func(sender *Sender) interface{} {
sender.Reply("更新所有账号")
logs.Info("更新所有账号")
updateCookie()
//updateCookie()
return nil
},
},

File diff suppressed because one or more lines are too long