Comments (7)
内容更新
已就报出的bug进行更新:Fix memberList&chatroomList bug [RB#28: tylor-e]
再次表达感谢!
测试代码
import itchat
itchat.auto_login()
print(len(itchat.__client.storageClass.memberList))
print(len(itchat.__client.storageClass.chatroomList))
from itchat.
另外groupDict不是很理解是什么,在memberList空的时候groupDict也是空的,目前给memberList赋值后,groupDict有一个群的成员信息,但是我有不止一个群,这个群成员信息会在什么情况下更新呢,为什么会选了一个群来更新成员信息
from itchat.
@tylor-e 修改有道理!下一个版本我改进去
groupDict
是在获取一个群的第一条新消息或者群新成员发言时更新的
from itchat.
在对memberList进行赋值的时候会清空web_init里面的一句:
self.storageClass.memberList.append(dic['User'])
这个应该是把自己添加到memberList,个人觉得没什么必要,毕竟自己的信息存在storage里面了,于是auto_login()的倒数第二句修改成
out.print_line('Login successfully as %s\n' % (self.storageClass.nickName), False)
否则会因为查不到自己而现实login successfully as None
from itchat.
@tylor-e 有些账号在获取memberList
的时候是获取不到自己的信息的,所以才加了那么一句。
第二句我会改进去的:)
from itchat.
@littlecodersh 我就是没获取到自己的信息,但是我觉得不需要把自己加到memberList,所以就没管,用自己的信息直接从storage里调
from itchat.
@tylor-e 没获取到是因为之前你发现的那个问题,我更新memberList
和chatroomList
的时候覆盖了,是个Bug。
使用self.storageClass.nickName
是有道理的,我会改进去。
from itchat.
Related Issues (20)
- Hi how i yours the App
- 现在微信网页版无法登录,还能用itchat吗 HOT 11
- iPhone手机上的8.0.43版本微信是不是改VOIP了?
- 视频号 HOT 1
- ???
- 错误
- 17年6月下旬前登陆过web网页版的微信可以使用此框架,验证微信是否支持web版本API,请点击https://wx.qq.com/ ,扫码验证即可,假如出现无法登陆,则不适用于此框架 HOT 3
- itchat.send_video 运行没有效果 HOT 2
- 如何获得微信群群人数
- 【无法登录】“为了保障你的账号安全,暂不支持使用网页版微信。你可以前往微信官网” HOT 3
- ?
- ?
- 可以与jenkins集成吗?将jenkins构建的结果推送到普通微信群中
- 关于thread过时
- 获取什么作为群聊用户的永久唯一标识? HOT 4
- set_alias修改好友备注接口怎么没有生效 HOT 3
- 我在登录后出现'xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4' 怎么解决 HOT 9
- 国务院的人都是一群鲨跸 HOT 4
- 【!!!研发必看!!!】替代UOS WEB版,做机器人,小助手,营销系统,客服系统,监管系统的可以 看下这个API方案 HOT 5
- 能根据手机号获取微信头像昵称吗?个人签名。 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from itchat.