• 关于微信 init接口返回的Count和webwxbatchgetcontact post请求的参数Count


    <pre name="code" class="python">POST  init接口返回:
    https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1691109206
    &lang=zh_CN
    &pass_ticket=UX9GsuROUbBEr%252B97CeEj07EuY2pHCpDpC7HcECQgPiQA%252FeATYJbGiJ39Nschkve3
    {
    "BaseResponse": {
    "Ret": 0,
    "ErrMsg": ""
    }
    ,
    "Count": 11,
    "ContactList": [{
    "Uin": 0,
    "UserName": "filehelper",
    "NickName": "文件传输助手",
    "HeadImgUrl": "/cgi-bin/mmwebwx-bin/webwxgeticon?seq=638861246&username=filehelper&skey=@crypt_597aeefd_a92a0e446943bb9a7d2344c8f5d76bdf"
    ,
    
    POST  获取群成员和最近联系的好友
    https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact?
    type=ex&r=1454302813666
    &lang=zh_CN
    &pass_ticket=UX9GsuROUbBEr%252B97CeEj07EuY2pHCpDpC7HcECQgPiQA%252FeATYJbGiJ39Nschkve3
    
    BaseRequest  Object { Uin=1284510822,  Sid="+U7msQsxDR8Ve+GP",  Skey="@crypt_597aeefd_a92a0e446943bb9a7d2344c8f5d76bdf",  更多...}
    	
    DeviceID     "e839847727039596"
    	
    Sid          "+U7msQsxDR8Ve+GP"
    	
    Skey         "@crypt_597aeefd_a92a0e446943bb9a7d2344c8f5d76bdf"
    	
    Uin          1284510822
    	
    Count        14
    	
    List
    	[Object { UserName="@@9545682a4a5e369101d0fe...bb918ce12a519a0c99f903d",  EncryChatRoomId=""}, Object { UserName="@@d3604446e83212cc92f701...bb24244f9a5e9416b9acf44",  EncryChatRoomId=""}, Object { UserName="@@5380338f022aebbf62b05f...6f4049f9ffd451dcc2fa38e",  EncryChatRoomId=""}, 11 更多...]
    	
    0         Object { UserName="@@9545682a4a5e369101d0fe...bb918ce12a519a0c99f903d",  EncryChatRoomId=""}EncryChatRoomId""
    	
    UserName  "@@9545682a4a5e369101d0fee17eb627c98994610e3bb918ce12a519a0c99f903d"
    	
    1         Object { UserName="@@d3604446e83212cc92f701...bb24244f9a5e9416b9acf44",  EncryChatRoomId=""}EncryChatRoomId""
    	
    UserName  "@@d3604446e83212cc92f701b24c85285f8f4863614bb24244f9a5e9416b9acf44"
    	
    2
    	Object { UserName="@@5380338f022aebbf62b05f...6f4049f9ffd451dcc2fa38e",  EncryChatRoomId=""}
    	
    EncryChatRoomId
    	""
    	
    UserName
    	"@@5380338f022aebbf62b05f59be7c5eac386a073706f4049f9ffd451dcc2fa38e"
    	
    3
    	Object { UserName="@@addbbba614de94810a1b81...87df0a65994558f845144cd",  EncryChatRoomId=""}
    	
    4
    	Object { UserName="@@ecbc99a3b14270c70b9bb5...cf17691f6b2cad0e503f80d",  EncryChatRoomId=""}
    	
    5
    	Object { UserName="@@87278d26c31666243e6010...77bbd6c5d2a7d0c817c7d6b",  ChatRoomId=""}
    	
    6
    	Object { UserName="@@c6a283e0a59cd327be1f11...98c6f3d15c9a0d321f8a929",  ChatRoomId=""}
    	
    7
    	Object { UserName="@@d26519b917afe4c02054da...1f65cf18447577bf5f29646",  ChatRoomId=""}
    	
    8
    	Object { UserName="@@e86e4a2e6231b569c587b3...0d5cfd3a2e26b4be01e4b78",  ChatRoomId=""}
    	
    9
    	Object { UserName="@@6e7cf924b5047d15a9cfe5...1ceb533cd8729d906cae642",  ChatRoomId=""}
    	
    10
    	Object { UserName="@@279f0ebcb0acefa4f466bd...1958c16e67ae5a654280414",  ChatRoomId=""}
    	
    11
    	Object { UserName="@2de2a73a7e0d163b114dbdc...cfd725448c34fa45857fb5f",  EncryChatRoomId=""}
    	
    12
    	Object { UserName="@bf690f17c69b50f54df12e14ce1435ca",  EncryChatRoomId=""}
    	
    13
    	Object { UserName="@9668ccd4eef01e98a2d0310cf077433c",  EncryChatRoomId=""}
    	
    这个14是哪里来的,有待解决
    
    这个14是自己定义的,你想获取几个就是几个
    


    
                                        
    
  • 相关阅读:
    项目实施(一)
    比较2个DataTable中的内容是否相同的方法
    [三、页面布局]18使用ScrollView在限定的区域显示超长的内容
    [三、页面布局]14使列表同时支持删除和移动记录的功能
    [三、页面布局]15使用Section将列表氛围几个组
    [三、页面布局]13调整记录在List列表里的顺序
    [三、页面布局]22制作一份漂亮而强大的表单
    [三、页面布局]16使用tintColor单独设置列表中的图表颜色
    [三、页面布局]20创建两层嵌套的滚动视图
    [三、页面布局]19创建一个水平方向上的滚动视图
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13351040.html
Copyright © 2020-2023  润新知