覆盖更新wskey

This commit is contained in:
ZJY 2021-09-07 00:21:14 +08:00
parent 4fd7f65134
commit b6ee961eeb
2 changed files with 16 additions and 3 deletions

View File

@ -122,9 +122,20 @@ var handleMessage = func(msgs ...interface{}) interface{} {
(&JdCookie{}).Push(msg)
logs.Info(msg)
} else {
msg := fmt.Sprintf("重复写入")
(&JdCookie{}).Push(msg)
logs.Info(msg)
if nck.WsKey == ck.WsKey {
msg := fmt.Sprintf("重复写入")
sender.Reply(fmt.Sprintf(msg))
(&JdCookie{}).Push(msg)
logs.Info(msg)
} else {
nck.Updates(JdCookie{
WsKey: ck.WsKey,
})
msg := fmt.Sprintf("写入WsKey并更新账号%s", ck.PtPin)
sender.Reply(fmt.Sprintf(msg))
(&JdCookie{}).Push(msg)
logs.Info(msg)
}
}
} else {
NewJdCookie(&ck)

View File

@ -12,4 +12,6 @@
8.多容器 token缓存过期问题修复 修复
9.wskey更新检测以及覆盖写入 开发中
10.解决%!(EXTRA 错误
11.手动指令更新