Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

room-leave event cannot get leaver member #1329

Closed
lijiarui opened this issue Jun 13, 2018 · 5 comments
Closed

room-leave event cannot get leaver member #1329

lijiarui opened this issue Jun 13, 2018 · 5 comments
Assignees
Labels

Comments

@lijiarui
Copy link
Member

WeChaty version:

0.15.154

Bug:

When emitting room-leave, cannot get leaver member contact.

Expect:

21:25:10 INFO Bot EVENT: room-leave - Room test-wechaty lost member 李佳芮

bot says kick off no contact! from test-wechaty! in the room

Actual:

21:25:10 INFO Bot EVENT: room-leave - Room test-wechaty lost member

bot says kick off 李佳芮 from test-wechaty!

Code:

.on('room-leave', async function(room, leaverList) {
  log.info('Bot', 'EVENT: room-leave - Room %s lost member %s',
                  await room.topic(),
                  leaverList.map(c => c.name()).join(','),
              )
  const topic = await room.topic()
  const name  = leaverList[0] ? leaverList[0].name() : 'no contact!'
  room.say(`kick off ${name} from ${topic}!` )
})

Log:

21:25:08 VERB PuppetPadchat onPadchatMessage({id=5875805997302671886, type=Sys(5)})
rawPayload: { content: '你将"李佳芮"移出了群聊',
  continue: 1,
  description: '',
  from_user: '5616634434@chatroom',
  msg_id: '5875805997302671886',
  msg_source: '',
  msg_type: 5,
  status: 1,
  sub_type: 10000,
  timestamp: 1528896307,
  to_user: 'wxid_zj2cahpwzgie12',
  uin: 324216852 }
21:25:08 VERB PuppetPadchat onPadchatMessageFriendshipEvent({id=undefined})
21:25:08 VERB PuppetPadchat onPadchatMessageRoomEvent({id=undefined})
21:25:08 VERB Puppet roomMemberSearch(5616634434@chatroom, "李佳芮")
21:25:08 VERB Puppet roomMemberSearch(5616634434@chatroom, {"name":"李佳芮"})
21:25:08 VERB PuppetPadchat roomMemberList(5616634434@chatroom)
21:25:08 VERB PuppetPadchatManager getRoomMemberIdList(5616634434)
21:25:08 SILL PuppetPadchatManager syncRoomMember(5616634434@chatroom)
21:25:08 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["5616634434@chatroom"])
21:25:10 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000024,"count":6,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/fA9Nics9jXHM3PER2fjfBGbX4GhKWhKGdb8MOtibcP3Tcu0FnDdiaI0ia6sdkic3mlZOHFI4m9WTcgFJp5zL8FUKZBxHrpAutvE1NPic9afdRHswQ/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"qq512436430\",\"nick_name\":\"小桔\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/fA9Nics9jXHM3PER2fjfBGbX4GhKWhKGdb8MOtibcP3Tcu0FnDdiaI0ia6sdkic3mlZOHFI4m9WTcgFJp5zL8FUKZBxHrpAutvE1NPic9afdRHswQ/132\",\"user_name\":\"wxid_zbym1zg75qbm22\"},
21:25:10 SILL PuppetPadchatManager syncRoomMember(5616634434@chatroom) total 6 members
21:25:10 VERB PuppetPadchatManager getRoomMemberIdList(5616634434) length=6
21:25:10 SILL PuppetPadchat roomMemberList()=6
21:25:10 VERB Puppet contactSearch(query={"name":"李佳芮"}, idList.length = 6)
21:25:10 SILL Puppet contactPayload(wxid_zbym1zg75qbm22) cache MISS
21:25:10 SILL PuppetPadchat contactRawPayload(wxid_zbym1zg75qbm22)
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_zbym1zg75qbm22)
21:25:10 SILL Puppet contactPayload(wxid_3xl8j2suau8b22) cache MISS
21:25:10 SILL PuppetPadchat contactRawPayload(wxid_3xl8j2suau8b22)
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_3xl8j2suau8b22)
21:25:10 SILL Puppet contactPayload(wxid_lredtm37y7rc22) cache MISS
21:25:10 SILL PuppetPadchat contactRawPayload(wxid_lredtm37y7rc22)
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_lredtm37y7rc22)
21:25:10 SILL Puppet contactPayload(wxid_seytcj5hxxsh12) cache MISS
21:25:10 SILL PuppetPadchat contactRawPayload(wxid_seytcj5hxxsh12)
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_seytcj5hxxsh12)
21:25:10 SILL Puppet contactPayload(lizhuohuan) cache MISS
21:25:10 SILL PuppetPadchat contactRawPayload(lizhuohuan)
21:25:10 SILL PuppetPadchatManager contactRawPayload(lizhuohuan)
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_zbym1zg75qbm22) retry() attempt=1
21:25:10 SILL PadchatRpc rpcCall(WXGetContact, ["wxid_zbym1zg75qbm22"])
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_3xl8j2suau8b22) retry() attempt=1
21:25:10 SILL PadchatRpc rpcCall(WXGetContact, ["wxid_3xl8j2suau8b22"])
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_lredtm37y7rc22) retry() attempt=1
21:25:10 SILL PuppetPadchatManager contactRawPayload(wxid_seytcj5hxxsh12) retry() attempt=1
21:25:10 SILL PuppetPadchatManager contactRawPayload(lizhuohuan) retry() attempt=1
21:25:10 SILL PuppetPadchat contactRawPayloadParser({user_name="wxid_lredtm37y7rc22"})
21:25:10 SILL PuppetPadchat contactRawPayloadParser({user_name="wxid_seytcj5hxxsh12"})
21:25:10 SILL PuppetPadchat contactRawPayloadParser({user_name="lizhuohuan"})
21:25:10 SILL Puppet contactPayload(wxid_lredtm37y7rc22) cache SET
21:25:10 SILL Puppet contactPayload(wxid_seytcj5hxxsh12) cache SET
21:25:10 SILL Puppet contactPayload(lizhuohuan) cache SET
21:25:10 SILL PadchatRpc WXGetContact(wxid_zbym1zg75qbm22) result: {"big_head":"http://wx.qlogo.cn/mmhead/ver_1/EU0H8DRNxgpm7fjKxA0TywTLPhx4ncAeGlhNLykXrsnibGtGuzN62D2IB1XKgybk54iaIS8icoyVdoArm7e6aQ8fPA4r9ibYdh9P16pLFWWVMK8/0","city":"","country":"","intro":"","label":"","message":"","nick_name":"小桔","provincia":"","py_initial":"","quan_pin":"","remark":"","remark_py_initial":"","remark_quan_pin":"","sex":0,"signature":"","small_head":"http://wx.qlogo.cn/mmhead/ver_1/EU0H8DRNxgpm7fjKxA0TywTLPhx4ncAeGlhNLykXrsnibGtGuzN62D2IB1XKgybk54iaIS8icoyVdoArm7e6aQ8fPA4r9ibYdh9P16pLFWWVMK8/132","status":0,"stranger":"","ticket":"","user_name":"wxid_zbym1zg75qbm22"}
21:25:10 SILL PuppetPadchat contactRawPayloadParser({user_name="wxid_zbym1zg75qbm22"})
21:25:10 SILL Puppet contactPayload(wxid_zbym1zg75qbm22) cache SET
21:25:10 SILL PadchatRpc WXGetContact(wxid_3xl8j2suau8b22) result: {"big_head":"http://wx.qlogo.cn/mmhead/ver_1/H9kK4FGAccfCec0fQJQNd9qKVzdWBxecnjfTev4gVTic7psXbGQIofSHMSkLFWmB4iaiceKoghZVia3SwPfOuzqPwA/0","city":"","country":"","intro":"","label":"","message":"","nick_name":"桔小秘","provincia":"","py_initial":"","quan_pin":"","remark":"","remark_py_initial":"","remark_quan_pin":"","sex":2,"signature":"","small_head":"http://wx.qlogo.cn/mmhead/ver_1/H9kK4FGAccfCec0fQJQNd9qKVzdWBxecnjfTev4gVTic7psXbGQIofSHMSkLFWmB4iaiceKoghZVia3SwPfOuzqPwA/132","status":0,"stranger":"","ticket":"","user_name":"wxid_3xl8j2suau8b22"}
21:25:10 SILL PuppetPadchat contactRawPayloadParser({user_name="wxid_3xl8j2suau8b22"})
21:25:10 SILL Puppet contactPayload(wxid_3xl8j2suau8b22) cache SET
21:25:10 VERB Puppet contactQueryFilterFactory({"name":"李佳芮"})
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zbym1zg75qbm22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_3xl8j2suau8b22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_lredtm37y7rc22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_seytcj5hxxsh12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=lizhuohuan noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 SILL Puppet roomMemberPayloadCache(5616634434@chatroom) cache MISS
21:25:10 SILL PuppetPadchat roomMemberRawPayload(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager roomMemberRawPayload(5616634434@chatroom)
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL PuppetPadchat roomMemberRawPayloadParser([object Object])
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 SILL Puppet roomMemberPayload(5616634434@chatroom) cache SET
21:25:10 VERB Puppet roomMemberSearch(5616634434@chatroom, {"contactAlias":"李佳芮"})
21:25:10 VERB PuppetPadchat roomMemberList(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager getRoomMemberIdList(5616634434)
21:25:10 VERB PuppetPadchatManager getRoomMemberIdList(5616634434) length=6
21:25:10 SILL PuppetPadchat roomMemberList()=6
21:25:10 VERB Puppet contactSearch(query={"alias":"李佳芮"}, idList.length = 6)
21:25:10 VERB Puppet contactQueryFilterFactory({"alias":"李佳芮"})
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zbym1zg75qbm22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_3xl8j2suau8b22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_lredtm37y7rc22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_seytcj5hxxsh12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=lizhuohuan noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberSearch(5616634434@chatroom, {"roomAlias":"李佳芮"})
21:25:10 VERB PuppetPadchat roomMemberList(5616634434@chatroom)
21:25:10 VERB PuppetPadchatManager getRoomMemberIdList(5616634434)
21:25:10 VERB PuppetPadchatManager getRoomMemberIdList(5616634434) length=6
21:25:10 SILL PuppetPadchat roomMemberList()=6
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zbym1zg75qbm22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_3xl8j2suau8b22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_lredtm37y7rc22 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=wxid_seytcj5hxxsh12 noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberPayload(roomId=5616634434@chatroom, contactId=lizhuohuan noCache=false)
21:25:10 SILL Puppet roomMemberPayloadCache(id=5616634434@chatroom) @ PuppetPadchat<default>
21:25:10 VERB Puppet roomMemberSearch(5616634434@chatroom, undefined)
21:25:10 VERB Room ready()
21:25:10 SILL Contact ready() @ PuppetPadchat<default>
21:25:10 SILL Contact ready() isReady() true
21:25:10 VERB Room topic()
21:25:10 INFO Bot EVENT: room-leave - Room test-wechaty lost member 
21:25:10 VERB Room topic()
21:25:10 VERB Room say(kick off no contact! from test-wechaty!, )
21:25:10 VERB PuppetPadchat messageSend({"roomId":"5616634434@chatroom"}, kick off no contact! from test-wechaty!)
21:25:10 SILL PadchatRpc rpcCall(WXSendMsg, ["5616634434@chatroom","kick off no contact! from test-wechaty!",""])
21:25:12 SILL PuppetPadchatManager syncRoomMember(6727857572@chatroom)
@lijiarui
Copy link
Member Author

Wechaty version: 2725f1a

Expect: get leaver name

Actual: cannot get leaver name

Other info:

NickName: 李佳芮
AliasName: wechaty-alias
Room Topic: Room ding - warn 李佳芮

Log

18:42:10 VERB PuppetPadchat onPadchatMessage({id=4649714124124331581, type=Sys(5)})
rawPayload: { content: '你将"wechaty-alias"移出了群聊',
  continue: 1,
  description: '',
  from_user: '6350854677@chatroom',
  msg_id: '4649714124124331581',
  msg_source: '',
  msg_type: 5,
  status: 1,
  sub_type: 10000,
  timestamp: 1528972931,
  to_user: 'wxid_zj2cahpwzgie12',
  uin: 324216852 }
18:42:10 VERB PuppetPadchat onPadchatMessageFriendshipEvent({id=4649714124124331581})
18:42:10 VERB PuppetPadchat onPadchatMessageRoomEventJoin({id=4649714124124331581})
18:42:10 VERB PuppetPadchat onPadchatMessageRoomEventLeave({id=4649714124124331581})
18:42:10 VERB Puppet roomMemberSearch(6350854677@chatroom, "wechaty-alias")
18:42:10 VERB Puppet roomMemberSearch(6350854677@chatroom, {"roomAlias":"wechaty-alias"})
18:42:10 VERB PuppetPadchat roomMemberList(6350854677@chatroom)
18:42:10 VERB PuppetPadchatManager getRoomMemberIdList(6350854677)
18:42:10 SILL PuppetPadchatManager syncRoomMember(6350854677@chatroom)
18:42:10 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["6350854677@chatroom"])
18:42:10 VERB PuppetPadchat onPadchatMessageRoomEventTopic({id=4649714124124331581})
18:42:11 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000185,"count":2,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/O5NAVwmeMl5n3rWks7QWefY3okwt2QAxPO1eiaBHvEztNPv3t9VBnkNS02cwgZxfx9VqaNRGBxvZMcVnGver1gy7LteMcDGZwn7rNLNqa7no/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"qq512436430\",\"nick_name\":\"苏轼\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/O5NAVwmeMl5n3rWks7QWefY3okwt2QAxPO1eiaBHvEztNPv3t9VBnkNS02cwgZxfx9VqaNRGBxvZMcVnGver1gy7LteMcDGZwn7rNLNqa7no/132\",\"user_name\":\"wxid_zj2cahpwzgie12\"},{\"big_hea
18:42:11 SILL PuppetPadchatManager syncRoomMember(6350854677@chatroom) total 6 members
18:42:11 VERB PuppetPadchatManager getRoomMemberIdList(6350854677) length=2
18:42:11 SILL PuppetPadchat roomMemberList()=2
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=lizhuohuan noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberSearch(6350854677@chatroom, {"name":"wechaty-alias"})
18:42:11 VERB PuppetPadchat roomMemberList(6350854677@chatroom)
18:42:11 VERB PuppetPadchatManager getRoomMemberIdList(6350854677)
18:42:11 VERB PuppetPadchatManager getRoomMemberIdList(6350854677) length=2
18:42:11 SILL PuppetPadchat roomMemberList()=2
18:42:11 VERB Puppet contactSearch(query={"name":"wechaty-alias"}, idList.length = 2)
18:42:11 VERB Puppet contactQueryFilterFactory({"name":"wechaty-alias"})
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=lizhuohuan noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberSearch(6350854677@chatroom, {"contactAlias":"wechaty-alias"})
18:42:11 VERB PuppetPadchat roomMemberList(6350854677@chatroom)
18:42:11 VERB PuppetPadchatManager getRoomMemberIdList(6350854677)
18:42:11 VERB PuppetPadchatManager getRoomMemberIdList(6350854677) length=2
18:42:11 SILL PuppetPadchat roomMemberList()=2
18:42:11 VERB Puppet contactSearch(query={"alias":"wechaty-alias"}, idList.length = 2)
18:42:11 VERB Puppet contactQueryFilterFactory({"alias":"wechaty-alias"})
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=wxid_zj2cahpwzgie12 noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberPayload(roomId=6350854677@chatroom, contactId=lizhuohuan noCache=false)
18:42:11 SILL Puppet roomMemberPayloadCache(id=6350854677@chatroom) @ PuppetPadchat<default>
18:42:11 VERB Puppet roomMemberSearch(6350854677@chatroom, undefined)
18:42:11 VERB PuppetPadchatManager purgeRoomMemberIdList(6350854677)
18:42:11 VERB Room ready()
18:42:11 SILL Contact ready() @ PuppetPadchat<default>
18:42:11 SILL Contact ready() isReady() true
18:42:11 VERB Room topic()
18:42:11 SILL Contact alias()
18:42:11 INFO Bot Room EVENT: leave -  leave(remover Contact<苏轼>), byebye
18:42:11 INFO Bot EVENT: room-leave - Room ding - warn 李佳芮 lost member
18:42:11 VERB Room topic()
18:42:11 VERB Room say(kick off no contact! from ding - warn 李佳芮!, )
18:42:11 VERB PuppetPadchat messageSend({"roomId":"6350854677@chatroom"}, kick off no contact! from ding - warn 李佳芮!)
18:42:11 SILL PadchatRpc rpcCall(WXSendMsg, ["6350854677@chatroom","kick off no contact! from ding - warn 李佳芮!",""])
18:42:11 VERB PuppetPadchat onPadchatMessage({id=4649714124124331581, type=Sys(5)})
18:42:11 WARN PuppetPadchat onPadchatMessage({id=undefined, type=undefined(undefined)}) duplicate message
18:42:12 SILL PadchatRpc onSocketTencent() discard empty message msg_id payoad: {"continue":0,"msg_type":32768,"status":1,"uin":324216852}
18:42:17 SILL PuppetPadchatManager syncRoomMember(2885922740@chatroom)
18:42:17 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["2885922740@chatroom"])
18:42:17 VERB PuppetPadchatManager startQueues() delayQueueExecutor.subscribe(syncRoomMember(2885922740@chatroom)) executed
18:42:17 SILL PadchatRpc initHeartbeat() throttleQueue.subscribe(ws.on(message))
18:42:17 SILL PuppetPadchat startWatchdog() bridge.on(heartbeat)
18:42:17 SILL PuppetPadchat startWatchdog() watchdog.on(feed, food={type=undefined, data=ws.on(message)})
18:42:17 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000011,"count":4,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/O5NAVwmeMl5n3rWks7QWefY3okwt2QAxPO1eiaBHvEztNPv3t9VBnkNS02cwgZxfx9VqaNRGBxvZMcVnGver1gy7LteMcDGZwn7rNLNqa7no/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"\",\"nick_name\":\"苏轼\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/O5NAVwmeMl5n3rWks7QWefY3okwt2QAxPO1eiaBHvEztNPv3t9VBnkNS02cwgZxfx9VqaNRGBxvZMcVnGver1gy7LteMcDGZwn7rNLNqa7no/132\",\"user_name\":\"wxid_zj2cahpwzgie12\"},{\"big_head\":\"http:
18:42:17 SILL PuppetPadchatManager syncRoomMember(2885922740@chatroom) total 6 members

@huan
Copy link
Member

huan commented Jun 14, 2018

I believe it was fixed, too.

@lijiarui
Copy link
Member Author

Actually, it didn't fix totally...

If the bot remove someone by hand, the bug fix.

While, when bot remove someone automatically(when one send ding in room and the bot remove the one out of the room), the bug still exists.

@lijiarui lijiarui assigned huan and unassigned lijiarui Jun 14, 2018
@lijiarui
Copy link
Member Author

lijiarui commented Jun 15, 2018

Wechaty version:

0.15.179

There is two kinds of action to remove one out of the room:

  • bug didn't fixed:
    bot remove one out of the room by wechaty (when one says ding in ding room, bot remove one automatically).
  • bug fixed:
    bot remove one out of the room by hand.

Separate log as follows:

1. bug didn't fixed

Reprocude: bot remove one out of the room by wechaty (when one says ding in ding room, bot remove one automatically).

Brief log:

12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, "wechaty-alias")
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, {"roomAlias":"wechaty-alias"})
...
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, {"name":"wechaty-alias"})
...
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, undefined)
...
12:53:04 INFO Bot EVENT: room-leave - Room ding - created lost member
...
12:53:04 VERB Room say(kick off no contact! from ding - created!, )
12:53:04 VERB PuppetPadchat messageSend({"roomId":"12707026825@chatroom"}, kick off no contact! from ding - created!)

Full log:

12:53:02 VERB PuppetPadchat onPadchatMessage({id=4956238329105394563, type=Text(5)})
rawPayload: { content: 'qq512436430:\nding',
  continue: 1,
  description: 'wechaty-alias : ding',
  from_user: '12707026825@chatroom',
  msg_id: '4956238329105394563',
  msg_source:
   '<msgsource>\n\t<silence>0</silence>\n\t<membercount>3</membercount>\n</msgsource>\n',
  msg_type: 5,
  status: 1,
  sub_type: 1,
  timestamp: 1529038381,
  to_user: 'wxid_zj2cahpwzgie12',
  uin: 324216852 }
12:53:02 VERB Message static create(4956238329105394563)
12:53:02 SILL Accessory #21<Message> constructor()
12:53:02 VERB Message constructor(4956238329105394563) for class Message
12:53:02 VERB Message ready()

...

12:53:02 VERB Room say(You said "ding" in my room, I will remove you out., )
12:53:02 VERB PuppetPadchat messageSend({"roomId":"12707026825@chatroom"}, You said "ding" in my room, I will remove you out.)
12:53:02 SILL PadchatRpc rpcCall(WXSendMsg, ["12707026825@chatroom","You said \"ding\" in my room, I will remove you out.",""])
12:53:02 SILL Contact alias()
12:53:02 VERB Room del(Contact<wechaty-alias>)
12:53:02 VERB PuppetPadchat roomDel(12707026825@chatroom, qq512436430)
12:53:02 SILL PadchatRpc rpcCall(WXDeleteChatRoomMember, ["12707026825@chatroom","qq512436430"])
12:53:02 SILL PadchatRpc WXDeleteChatRoomMember result: {"message":"","status":0}
12:53:02 SILL PuppetPadchat roomMemberRawPayloadDirty(12707026825@chatroom)
12:53:02 VERB PuppetPadchatManager roomMemberRawPayloadDirty(12707026825)
12:53:02 VERB Puppet roomMemberPayloadDirty(12707026825@chatroom)
12:53:02 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:53:02 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:53:02 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom)
12:53:02 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["12707026825@chatroom"])
12:53:03 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000008,"count":2,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"wxid_zj2cahpwzgie12\",\"nick_name\":\"李卓桓\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/132\",\"user_name\":\"lizhuohuan\"},{\"big_head\":\"http://wx.qlogo.cn
12:53:03 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom) total 6 members
12:53:03 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:53:03 SILL PuppetPadchat roomMemberList()=2
12:53:03 SILL Puppet constructor() lruOptions.dispose(lizhuohuan@@@12707026825@chatroom, {"id":"lizhuohuan","inviterId":"wxid_zj2cahpwzgie12","roomAlias":""})
12:53:03 SILL Puppet constructor() lruOptions.dispose(wxid_zj2cahpwzgie12@@@12707026825@chatroom, {"id":"wxid_zj2cahpwzgie12","inviterId":"","roomAlias":""})
12:53:03 VERB PuppetPadchat onPadchatMessage({id=5899900134811406122, type=Sys(5)})
rawPayload: { content: '你将"wechaty-alias"移出了群聊',
  continue: 1,
  description: '',
  from_user: '12707026825@chatroom',
  msg_id: '5899900134811406122',
  msg_source: '',
  msg_type: 5,
  status: 1,
  sub_type: 10000,
  timestamp: 1529038382,
  to_user: 'wxid_zj2cahpwzgie12',
  uin: 324216852 }
12:53:03 VERB PuppetPadchat onPadchatMessageFriendshipEvent({id=5899900134811406122})
12:53:03 VERB PuppetPadchat onPadchatMessageRoomEventJoin({id=5899900134811406122})
12:53:03 VERB PuppetPadchat onPadchatMessageRoomEventLeave({id=5899900134811406122})
12:53:03 SILL PuppetPadchat onPadchatMessageRoomEventLeave() roomLeaveEvent="{"leaverNameList":["wechaty-alias"],"roomId":"12707026825@chatroom"}"
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, "wechaty-alias")
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, {"roomAlias":"wechaty-alias"})
12:53:03 VERB PuppetPadchat roomMemberList(12707026825@chatroom)

...

12:53:03 VERB Puppet contactSearch(query={"name":"wechaty-alias"}, idList.length = 2)
12:53:03 VERB Puppet contactQueryFilterFactory({"name":"wechaty-alias"})
12:53:03 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=lizhuohuan dirty=false)
12:53:03 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:53:03 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=wxid_zj2cahpwzgie12 dirty=false)
12:53:03 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, {"contactAlias":"wechaty-alias"})
12:53:03 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:53:03 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:53:03 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:53:03 SILL PuppetPadchat roomMemberList()=2
12:53:03 VERB Puppet contactSearch(query={"alias":"wechaty-alias"}, idList.length = 2)
12:53:03 VERB Puppet contactQueryFilterFactory({"alias":"wechaty-alias"})
12:53:03 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=lizhuohuan dirty=false)
12:53:03 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:53:03 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=wxid_zj2cahpwzgie12 dirty=false)
12:53:03 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:53:03 VERB Puppet roomMemberSearch(12707026825@chatroom, undefined)
12:53:03 SILL PuppetPadchat roomMemberRawPayloadDirty(12707026825@chatroom)
12:53:03 VERB PuppetPadchatManager roomMemberRawPayloadDirty(12707026825)
12:53:03 VERB Puppet roomMemberPayloadDirty(12707026825@chatroom)
12:53:03 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:53:03 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:53:03 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom)
12:53:03 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["12707026825@chatroom"])
12:53:03 VERB PuppetPadchat roomPayloadDirty(12707026825@chatroom)
12:53:03 VERB PuppetPadchatManager roomRawPayloadDirty(12707026825)
12:53:03 VERB Puppet roomPayloadDirty(12707026825@chatroom)
12:53:03 SILL Puppet constructor() lruOptions.dispose(12707026825@chatroom, {"id":"12707026825@chatroom","topic":"ding - created","ownerId":"wxid_zj2cahpwzgie12"})
12:53:03 VERB Room ready()
12:53:03 SILL Puppet roomPayloadCache(12707026825@chatroom) cache MISS
12:53:03 VERB Puppet roomPayload(id=12707026825@chatroom, dirty=false)
12:53:03 SILL Puppet roomPayloadCache(12707026825@chatroom) cache MISS
12:53:03 VERB PuppetPadchat roomRawPayload(12707026825@chatroom)
12:53:03 VERB PuppetPadchatManager roomRawPayload(12707026825@chatroom)
12:53:03 SILL PuppetPadchatManager roomRawPayload(12707026825@chatroom) retry() attempt=1
12:53:03 SILL PadchatRpc rpcCall(WXGetContact, ["12707026825@chatroom"])
12:53:03 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000008,"count":2,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"wxid_zj2cahpwzgie12\",\"nick_name\":\"李卓桓\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/132\",\"user_name\":\"lizhuohuan\"},{\"big_head\":\"http://wx.qlogo.cn
12:53:03 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom) total 6 members
12:53:03 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:53:03 SILL PuppetPadchat roomMemberList()=2
12:53:03 SILL Puppet constructor() lruOptions.dispose(lizhuohuan@@@12707026825@chatroom, {"id":"lizhuohuan","inviterId":"wxid_zj2cahpwzgie12","roomAlias":""})
12:53:03 SILL Puppet constructor() lruOptions.dispose(wxid_zj2cahpwzgie12@@@12707026825@chatroom, {"id":"wxid_zj2cahpwzgie12","inviterId":"","roomAlias":""})
12:53:04 SILL PadchatRpc WXGetContact(12707026825@chatroom) result: {"big_head":"","chatroom_id":700000008,"chatroom_owner":"wxid_zj2cahpwzgie12","city":"","country":"","intro":"","label":"","max_member_count":500,"member":"[\"lizhuohuan\",\"wxid_zj2cahpwzgie12\"]\n","member_count":2,"message":"","nick_name":"ding - created","provincia":"","py_initial":"DINGCREATED","quan_pin":"dingcreated","remark":"","remark_py_initial":"","remark_quan_pin":"","sex":0,"signature":"","small_head":"http://wx.qlogo.cn/mmcrhead/RiaZslwCczrCdPPYp7YQ7Lljc7AvrVAvxibB1HNrAqPX0icpjFv3U7nkdpLm6ich4aicFLfm0OtvEAJf0r4NpPQ3FxKMc5kN9npnD/0","status":0,"stranger":"v1_1ac3d2d697c975cd93efa89729b50fa4dea7bd3ed345524ff74613ceebb7f399080be71a86f9c676c575df0175bd5f78@stranger","ticket":"","user_name":"12707026825@chatroom"}
12:53:04 VERB PuppetPadchat roomRawPayloadParser(rawPayload.user_name="12707026825@chatroom")
12:53:04 SILL Puppet roomPayload(12707026825@chatroom) cache SET
12:53:04 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:53:04 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:53:04 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:53:04 SILL PuppetPadchat roomMemberList()=2
12:53:04 SILL Contact ready() @ PuppetPadchat<default>
12:53:04 SILL Contact ready() isReady() true
12:53:04 SILL Contact ready() @ PuppetPadchat<default>
12:53:04 SILL Contact ready() isReady() true
12:53:04 SILL Contact ready() @ PuppetPadchat<default>
12:53:04 SILL Contact ready() isReady() true
12:53:04 VERB Room topic()
12:53:04 INFO Bot EVENT: room-leave - Room ding - created lost member 
12:53:04 VERB Room topic()
12:53:04 VERB Room say(kick off no contact! from ding - created!, )
12:53:04 VERB PuppetPadchat messageSend({"roomId":"12707026825@chatroom"}, kick off no contact! from ding - created!)
12:53:04 SILL PadchatRpc rpcCall(WXSendMsg, ["12707026825@chatroom","kick off no contact! from ding - created!",""])

2. bug fixed

Reproduce: bot remove one out of the room by hand.

Brief log:

12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, "wechaty-alias")
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"roomAlias":"wechaty-alias"})
...
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"name":"wechaty-alias"})
...
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"contactAlias":"wechaty-alias"})
...
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, undefined)
...
12:58:01 INFO Bot EVENT: room-leave - Room ding - created lost member 李佳芮
...
12:58:01 VERB PuppetPadchat messageSend({"roomId":"12707026825@chatroom"}, kick off 李佳芮 from ding - created!)
12:58:01 SILL PadchatRpc rpcCall(WXSendMsg, ["12707026825@chatroom","kick off 李佳芮 from ding - created!",""])

Full log:

12:58:01 VERB PuppetPadchat onPadchatMessage({id=231534257390083620, type=Sys(5)})
rawPayload: { content: '你将"wechaty-alias"移出了群聊',
  continue: 1,
  description: '',
  from_user: '12707026825@chatroom',
  msg_id: '231534257390083620',
  msg_source: '',
  msg_type: 5,
  status: 1,
  sub_type: 10000,
  timestamp: 1529038680,
  to_user: 'wxid_zj2cahpwzgie12',
  uin: 324216852 }
12:58:01 VERB PuppetPadchat onPadchatMessageFriendshipEvent({id=231534257390083620})
12:58:01 VERB PuppetPadchat onPadchatMessageRoomEventJoin({id=231534257390083620})
12:58:01 VERB PuppetPadchat onPadchatMessageRoomEventLeave({id=231534257390083620})
12:58:01 SILL PuppetPadchat onPadchatMessageRoomEventLeave() roomLeaveEvent="{"leaverNameList":["wechaty-alias"],"roomId":"12707026825@chatroom"}"
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, "wechaty-alias")
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"roomAlias":"wechaty-alias"})
12:58:01 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=3
12:58:01 VERB PuppetPadchat onPadchatMessageRoomEventTopic({id=231534257390083620})
12:58:01 SILL PuppetPadchat roomMemberList()=3
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=lizhuohuan dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=wxid_zj2cahpwzgie12 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=qq512436430 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"name":"wechaty-alias"})
12:58:01 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=3
12:58:01 SILL PuppetPadchat roomMemberList()=3
12:58:01 VERB Puppet contactSearch(query={"name":"wechaty-alias"}, idList.length = 3)
12:58:01 VERB Puppet contactQueryFilterFactory({"name":"wechaty-alias"})
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=lizhuohuan dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=wxid_zj2cahpwzgie12 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=qq512436430 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, {"contactAlias":"wechaty-alias"})
12:58:01 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=3
12:58:01 SILL PuppetPadchat roomMemberList()=3
12:58:01 VERB Puppet contactSearch(query={"alias":"wechaty-alias"}, idList.length = 3)
12:58:01 VERB Puppet contactQueryFilterFactory({"alias":"wechaty-alias"})
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=lizhuohuan dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=wxid_zj2cahpwzgie12 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberPayload(roomId=12707026825@chatroom, contactId=qq512436430 dirty=false)
12:58:01 SILL Puppet roomMemberPayloadCache(id=12707026825@chatroom) @ PuppetPadchat<default>
12:58:01 VERB Puppet roomMemberSearch(12707026825@chatroom, undefined)
12:58:01 SILL PuppetPadchat roomMemberRawPayloadDirty(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager roomMemberRawPayloadDirty(12707026825)
12:58:01 VERB Puppet roomMemberPayloadDirty(12707026825@chatroom)
12:58:01 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:58:01 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom)
12:58:01 SILL PadchatRpc rpcCall(WXGetChatRoomMember, ["12707026825@chatroom"])
12:58:01 VERB PuppetPadchat roomPayloadDirty(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager roomRawPayloadDirty(12707026825)
12:58:01 VERB Puppet roomPayloadDirty(12707026825@chatroom)
12:58:01 SILL Puppet constructor() lruOptions.dispose(12707026825@chatroom, {"id":"12707026825@chatroom","topic":"ding - created","ownerId":"wxid_zj2cahpwzgie12"})
12:58:01 VERB Room ready()
12:58:01 SILL Puppet roomPayloadCache(12707026825@chatroom) cache MISS
12:58:01 VERB Puppet roomPayload(id=12707026825@chatroom, dirty=false)
12:58:01 SILL Puppet roomPayloadCache(12707026825@chatroom) cache MISS
12:58:01 VERB PuppetPadchat roomRawPayload(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager roomRawPayload(12707026825@chatroom)
12:58:01 SILL PuppetPadchatManager roomRawPayload(12707026825@chatroom) retry() attempt=1
12:58:01 SILL PadchatRpc rpcCall(WXGetContact, ["12707026825@chatroom"])
12:58:01 SILL PadchatRpc initHeartbeat() throttleQueue.subscribe(ws.on(message))
12:58:01 SILL PuppetPadchat startWatchdog() bridge.on(heartbeat)
12:58:01 SILL PuppetPadchat startWatchdog() watchdog.on(feed, food={type=undefined, data=ws.on(message)})
12:58:01 SILL PadchatRpc WXGetChatRoomMember() result: {"chatroom_id":700000010,"count":2,"member":"[{\"big_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/0\",\"chatroom_nick_name\":\"\",\"invited_by\":\"wxid_zj2cahpwzgie12\",\"nick_name\":\"李卓桓\",\"small_head\":\"http://wx.qlogo.cn/mmhead/ver_1/VjqnqeuPye38V5RmXxh37DbibicjtTIdgrX1OQPbs1MhQ4UyQlicVTPAcibkJKJIia6cqetYPlicshtC9uJA2iabiasicicA/132\",\"user_name\":\"lizhuohuan\"},{\"big_head\":\"http://wx.qlogo.cn
12:58:01 SILL PuppetPadchatManager syncRoomMember(12707026825@chatroom) total 6 members
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:58:01 SILL PuppetPadchat roomMemberList()=2
12:58:01 SILL Puppet constructor() lruOptions.dispose(lizhuohuan@@@12707026825@chatroom, {"id":"lizhuohuan","inviterId":"wxid_zj2cahpwzgie12","roomAlias":""})
12:58:01 SILL Puppet constructor() lruOptions.dispose(wxid_zj2cahpwzgie12@@@12707026825@chatroom, {"id":"wxid_zj2cahpwzgie12","inviterId":"","roomAlias":""})
12:58:01 SILL PadchatRpc WXGetContact(12707026825@chatroom) result: {"big_head":"","chatroom_id":700000010,"chatroom_owner":"wxid_zj2cahpwzgie12","city":"","country":"","intro":"","label":"","max_member_count":500,"member":"[\"lizhuohuan\",\"wxid_zj2cahpwzgie12\"]\n","member_count":2,"message":"","nick_name":"ding - created","provincia":"","py_initial":"DINGCREATED","quan_pin":"dingcreated","remark":"","remark_py_initial":"","remark_quan_pin":"","sex":0,"signature":"","small_head":"http://wx.qlogo.cn/mmcrhead/xLibfMcGPKF8ycGZPKC4VZ0m3yyH2SVic9niaoV6gD7NliaWs4xvF17jphx40Wb94aze4rG3ibhA6b7bIpV7Sr0D21gfn9icCPzkEf/0","status":0,"stranger":"v1_1ac3d2d697c975cd93efa89729b50fa4dea7bd3ed345524ff74613ceebb7f399080be71a86f9c676c575df0175bd5f78@stranger","ticket":"","user_name":"12707026825@chatroom"}
12:58:01 VERB PuppetPadchat roomRawPayloadParser(rawPayload.user_name="12707026825@chatroom")
12:58:01 SILL Puppet roomPayload(12707026825@chatroom) cache SET
12:58:01 VERB PuppetPadchat roomMemberList(12707026825@chatroom)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825)
12:58:01 VERB PuppetPadchatManager getRoomMemberIdList(12707026825) length=2
12:58:01 SILL PuppetPadchat roomMemberList()=2
12:58:01 SILL Contact ready() @ PuppetPadchat<default>
12:58:01 SILL Contact ready() isReady() true
12:58:01 SILL Contact ready() @ PuppetPadchat<default>
12:58:01 SILL Contact ready() isReady() true
12:58:01 SILL Contact ready() @ PuppetPadchat<default>
12:58:01 SILL Contact ready() isReady() true
12:58:01 SILL Contact ready() @ PuppetPadchat<default>
12:58:01 SILL Contact ready() isReady() true
12:58:01 VERB Room topic()
12:58:01 INFO Bot EVENT: room-leave - Room ding - created lost member 李佳芮
12:58:01 VERB Room topic()
12:58:01 VERB Room say(kick off 李佳芮 from ding - created!, )
12:58:01 VERB PuppetPadchat messageSend({"roomId":"12707026825@chatroom"}, kick off 李佳芮 from ding - created!)
12:58:01 SILL PadchatRpc rpcCall(WXSendMsg, ["12707026825@chatroom","kick off 李佳芮 from ding - created!",""])

@lijiarui
Copy link
Member Author

thanks! fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants