-
Notifications
You must be signed in to change notification settings - Fork 715
联系人
HanSon edited this page Mar 29, 2017
·
3 revisions
微信中有多种不一样的用户类型,例如联系人,群组成员,公众号,特殊账号(文件助手)等等。
作为单进程的程序,每次运行时都会对每种用户类型以单例模式存储在各个类中。
当开启了调试模式,相关的用户json数据将保存在存储目录中,方便更好的查看数据结构。
每个用户的基本属性如图(均为数组)
Array
(
[Uin] => 0
[UserName] => @bd04ef625c2f6449c207b0506d4bfe55
[NickName] => HanSon
[HeadImgUrl] => /cgi-bin/mmwebwx-bin/webwxgeticon?seq=660180556&username=@bd04ef625c2f6449c207b0506d4bfe55&skey=@crypt_7528fc6a_185c4ce43b8228a627cd93080c0391f5
[ContactFlag] => 3
[MemberCount] => 0
[MemberList] => Array()
[RemarkName] =>
[HideInputBarFlag] => 0
[Sex] => 1
[Signature] => Keep Learning, Keep Running
[VerifyFlag] => 0
[OwnerUin] => 0
[PYInitial] => HANSON
[PYQuanPin] => HanSon
[RemarkPYInitial] =>
[RemarkPYQuanPin] =>
[StarFriend] => 0
[AppAccountFlag] => 0
[Statues] => 0
[AttrStatus] => 33784831
[Province] => 广东
[City] => 广州
[Alias] => hanson //微信号
[SnsFlag] => 17
[UniFriend] => 0
[DisplayName] =>
[ChatRoomId] => 0
[KeyWord] => fas
[EncryChatRoomId] =>
)
- UserName 每次登录微信都会给用户分配一个username,且每次登录username都不一样
- NickName 用户的昵称
- HeadImgUrl 用户的头像(暂未提供头像下载)
- Sex 性别 1-男 2-女
- Signature 个性签名
- Province 国内代表省份,国外代表国家
- City 城市
- Alias 微信号