1. Versions
-
What is your wechaty version?
Answer: "@juzi/wechaty": "1.0.47"
-
What is your wechaty-puppet-padplus version?
Answer: "@juzi/wechaty-puppet-padplus": "1.2.4",
-
What is your node version? (run node --version)
Answer: v16.17.0
-
What os are you using
Answer: Mac Os
2. Describe the bug
room.has() 方法返回结果不准确
3. To Reproduce
步骤
-
WECHATY_LOG = silly
-
本地启动node服务,使用token登录bot
-
新建群,然后再拉机器人进去
-
重新命名群为 777
-
调用 room.has(bot.currentUser) 返回 true, 且能看到群名称更改为777
-
关闭本地服务,保持ipad端登录(未在手机上点退出登录,此时padplus远程应该是登录了的)
-
群主在777的群中踢掉 bot
-
重新启动本地node服务,本地存在 memory-card.json ,自动登录成功
-
直接查询 777 的群, 调用 room.has(bot.currentUser) 依然返回 true
4. Expected behavior
调用 room.has(bot.currentUser) 返回 false
5. Actual behavior
调用 room.has(bot.currentUser) 返回 true
6. Full Output Logs
无可利用的详细log
Show Logs
7. Additional context
const instance = _getRobot(ctx, params);
let room = null
room = instance.Room.load(roomId)
await room.sync()
let member = await room.memberAll() //
let has = await room.has(instance.currentUser) // 返回结果错误
步骤遵循文档中的先 load、再sync,memberAll 与 has 返回的都是错误的结果
1. Versions
What is your wechaty version?
Answer: "@juzi/wechaty": "1.0.47"
What is your wechaty-puppet-padplus version?
Answer: "@juzi/wechaty-puppet-padplus": "1.2.4",
What is your node version? (run
node --version)Answer: v16.17.0
What os are you using
Answer: Mac Os
2. Describe the bug
room.has() 方法返回结果不准确
3. To Reproduce
步骤
WECHATY_LOG = silly
本地启动node服务,使用token登录bot
新建群,然后再拉机器人进去
重新命名群为 777
调用 room.has(bot.currentUser) 返回 true, 且能看到群名称更改为777
关闭本地服务,保持ipad端登录(未在手机上点退出登录,此时padplus远程应该是登录了的)
群主在777的群中踢掉 bot
重新启动本地node服务,本地存在 memory-card.json ,自动登录成功
直接查询 777 的群, 调用 room.has(bot.currentUser) 依然返回 true
4. Expected behavior
调用 room.has(bot.currentUser) 返回 false
5. Actual behavior
调用 room.has(bot.currentUser) 返回 true
6. Full Output Logs
无可利用的详细log
Show Logs
7. Additional context