juzibot / wechaty-puppet-macpro

One puppet based on Mac WeChat for Wechaty.
Apache License 2.0
38 stars 10 forks source link

contact.payload.weixin获取有一部分几率不正确 #63

Open doc-war opened 4 years ago

doc-war commented 4 years ago

Important:Please file the issue follow the template, or we won't help you to solve the problem.

0. Report Issue Guide

  1. Please run the following command and check whether the problem has been fixed:
npm install wechaty-puppet-macpro
  1. Please search in the issue first, and make sure your problem had not been reported before

1. Versions

2. Describe the bug

用Contact.payload.weixin不能稳定拿到正确的微信号。 如下图所见的微信号,很明显,其weixin字段的正常值应该是lsw199067,但是取出来的,却是wxid_开头的字符串。

问题案例图片

截图的账号是我主号的亲友,和我主号、以及机器人小号都在同一个亲友群里,所以可以100%保证真实性。 我遍历了群里的其他人,发现不是个例,有少数部分能正确取到微信号,而多数人则不正确,都是wxid_开头的。 我又试了另外2个群,也是如此,证明不是个例。 你们随便找个10人左右的小群应该就可以复现: 顺序,从指定room拿到memberIdList数组,遍历数组里的每一个wxid,循环查到contact,取contact.payload.weixin,可以看到问题了

doc-war commented 4 years ago

有人在吗? 这个mac不会没人维护了吧?发现上一个bug还是去年反馈的,到现在都没回复过[抓狂]

su-chang commented 4 years ago

Thanks for your issue, we will check it later.

doc-war commented 4 years ago

@su-chan 有检查结果了吗