发送wskey绑定QQ

This commit is contained in:
ZJY 2021-09-08 09:40:30 +08:00
parent 62050206cb
commit cf10ef2a93

View File

@ -118,6 +118,9 @@ var handleMessage = func(msgs ...interface{}) interface{} {
nck.Updates(JdCookie{
WsKey: ck.WsKey,
})
if sender.IsQQ() {
ck.Update(QQ, ck.QQ)
}
msg := fmt.Sprintf("写入WsKey并更新账号%s", ck.PtPin)
(&JdCookie{}).Push(msg)
logs.Info(msg)
@ -140,6 +143,9 @@ var handleMessage = func(msgs ...interface{}) interface{} {
} else {
NewJdCookie(&ck)
msg := fmt.Sprintf("添加账号,用户名:%s", ck.PtPin)
if sender.IsQQ() {
ck.Update(QQ, ck.QQ)
}
sender.Reply(fmt.Sprintf(msg))
logs.Info(msg)
}