收藏
回答

通过openid获取unionid,没有正常返回?

场景是对接原生微信公众好聊天,openid是微信发送的消息体里面获取的,调用的接口时http://api.weixin.qq.com/cgi-bin/user/infohttp://api.weixin.qq.com/cgi-bin/user/info?access_token=**&openid=**&lang=zh_CN,返回的内容为

{"openid":"**","subscribe":0,"tagid_list":[]},

没有正确的返回。subscribe为0,是否为没有关注,那么问题来了,没有关注是怎么做到微信公众号发消息的。

而且这个不是所有都是错误的,有的openid就是正常的:

{"city":"宁波","country":"中国","groupid":0,"headimgurl":"**","language":"zh_CN","nickname":"**","openid":"**","province":"浙江","qr_scene":0,"qr_scene_str":"","remark":"","sex":2,"subscribe":1,"subscribe_scene":"ADD_SCENE_SEARCH","subscribe_time":1512103510,"tagid_list":[],"unionid":"**"}


哪位大神可以帮忙看一下原因吗?谢谢


回答关注问题邀请回答
收藏

1 个回答

  • Wang
    Wang
    2020-02-20

    不关注无法推送

    2020-02-20
    有用
    回复
登录 后发表内容
问题标签