Skip to content

获取不到群成员的qq号 #231

@winrey

Description

@winrey

环境是docker-compose直接拉取hub镜像部署的。刚去看了镜像17天前还更新过,应该能排除是没更新的问题。
使用的是md5密码登陆的方式,扫码过程中没有任何报错。

接口{{host}}/openqq/get_group_info返回是这样的:

[
    {
        "code": 120555xxx,
        "createtime": 1468635xxx,
        "id": 1375660xxx,
        "level": 0,
        "markname": null,
        "member": [
            {
                "card": "吃瓜群众",
                "city": "海淀",
                "client_type": "unknown",
                "country": "中国",
                "id": 3207438xxx,
                "name": "Renne.",
                "province": "北京",
                "sex": "female",
                "state": "offline"
            }
        ],
        "memo": "群简介",
        "name": "群名",
        "owner_id": 2881432xxx,
        "owner_uid": 469762xxx,
        "role": "attend",
        "uid": 454710xxx
    }
]

群成员中没有Uid的项目。

猜测正是因此,receiver_uid 没有缓存的值,获取群消息后值返回为空

{
    'class': 'recv',
    'content': '。',
    'group': '测试',
    'group_id': 289936xxxx,
    'group_uid': 60924xxxx,
    'id': 64529,
    'post_type': 'receive_message',
    'receiver': 'test',
    'receiver_id': 23799xxxx,
    'receiver_uid': None,
    'sender': '我',
    'sender_id': 16xxxxxxxx,
    'sender_uid': None,
    'time': 1526738315,
    'type': 'group_message'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions