fritx / wxbot

[已过时] 普通个人号 微信机器人/外挂
https://blog.fritx.me/?projects/wxbot/
803 stars 240 forks source link

多人回复导致回复错乱的可能? #7

Open alvin2ye opened 8 years ago

alvin2ye commented 8 years ago

先谢为敬.

我想用这个做消息通知系统(内部): 短信的通知链接不能微信直接打开, 微信的可以. 看了源码发现, 是检测页面编号的.

但要主动给某个微信发送消息是否可以 ? 最好有微信号, 基于昵称勉强也行

fritx commented 8 years ago

@alvin2ye 感谢

多人回复导致回复错乱的可能?

感觉有可能 后续需要重写优化 同时结合新ES语法 让代码更加可读 ;)

最好有微信号, 基于昵称勉强也行

在联系人列表 通过微信号似乎可以搜索出用户 通过昵称没问题

// angular.element('.nav_view').scope().chatList[2]
{"RemarkPYQuanPin":"","RemarkPYInitial":"","PYInitial":"DFZZSR","PYQuanPin":"duifangzhengzaishuru",
"Uin":0,"UserName":"@21e745698d9a86999719b519922808db","NickName":"对方正在输入...",
"HeadImgUrl":"/cgi-bin/mmwebwx-bin/webwxgeticon?seq=641690090&username=@21e745698d9a86999719b519922808db&skey=@crypt_29af9630_9a82fcddfc3e5840a9667761ab0035ee",
"ContactFlag":3,"MemberCount":0,"MemberList":[],"RemarkName":"","HideInputBarFlag":0,"Sex":1,"Signature":"一切都不会等,都变得太快了。灰色头像之伤!",
"VerifyFlag":0,"OwnerUin":0,"StarFriend":0,"AppAccountFlag":0,"Statues":0,"AttrStatus":233575,"Province":"广东","City":"广州",
"Alias":"","SnsFlag":17,"UniFriend":0,"DisplayName":"","ChatRoomId":0,"KeyWord":"zhl",
"EncryChatRoomId":"","MMOrderSymbol":"DUIFANGZHENGZAISHURU","_index":2,"_h":64,"_offsetTop":128,"MMDigest":"","NoticeCount":0,"MMTime":"","MMDigestTime":""}

还可以再参考一下这些项目: https://github.com/stonexer/wechatBot https://github.com/Urinx/WeixinBot