收藏
回答

开放平台下其中一个应用获取用户信息不返回unionid,另外一个应用正常返回,是哪里问题?

我注册了开放平台,下面有2个应用,有2个公众号分别授权给了这两个应用,但发现其中一个应用不返回unionid

都是普通的授权方式,并没有绑定到开放平台操作,那怎么有一个不返回unionid呢?

应用1,不返回unionid,(appid:wxe4a257c74a5960e0),对应的公众号:(wxb74969c9e4ac5f49)

URL:https://api.weixin.qq.com/cgi-bin/user/info?access_token=69_L8TZiFeV2F9w7wB19kvs6hfpP-b5nolBWyAztwMN57iZtC-o6dMJ5bp1deKizrwt-TFnG1ur0tF2xh3-XQJUvYbHIVDKk_aZPgUiLhFJxCOI7lIOSg3mPNoYuQdv7oig-_pSlqMQGB0fwps8FMAbAIDJQE&openid=oQJPo6WsJfyIjldgIXCLbQKJYTdk&lang=zh_CN

返回结果:{"subscribe":1,"openid":"oQJPo6WsJfyIjldgIXCLbQKJYTdk","nickname":"","sex":0,"language":"zh_CN","city":"","province":"","country":"","headimgurl":"","subscribe_time":1662740823,"remark":"","groupid":0,"tagid_list":[],"subscribe_scene":"ADD_SCENE_PROFILE_CARD","qr_scene":0,"qr_scene_str":""}


应用2,正常返回unionid(APPID:wxbe78893f3750c562),对应的公众号(wx695e3dbda0a147e2)

URL:https://api.weixin.qq.com/cgi-bin/user/info?access_token=69_8j8e8mBh44DiTxA7r8JY20oE46E02Ta_lYq2xuh1QSO5SgB0yx-iyN0jJMATgup1wskZhNWliNjng6Mj2Djuj9UGmq9nnvaWvJ0-RUGdyOymdUstR7pbG90kjDAEBW9OS6Wmk6OudDXxeSzyTCHiAHDENS&openid=oOdiSjtLqBreGsBw1ziKPTpIy_vg&lang=zh_CN

返回结果:{"subscribe":1,"openid":"oOdiSjtLqBreGsBw1ziKPTpIy_vg","nickname":"","sex":0,"language":"zh_CN","city":"","province":"","country":"","headimgurl":"","subscribe_time":1685540207,"unionid":"o46OK5sH1yfPAkK3b7yzrMqUABK4","remark":"","groupid":0,"tagid_list":[],"subscribe_scene":"ADD_SCENE_QR_CODE","qr_scene":0,"qr_scene_str":""}

请帮看一下应用1为什么没有返回unionid呢?

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

1 个回答

  • Jianbo
    Jianbo
    2023-06-01

    是否都绑定到了开放平台?

    2023-06-01
    有用
    回复 1
    • 半个好人
      半个好人
      2023-06-01
      绑定和授权是不一样的吧? 在开放平台上并没有绑定公众号,都是授权给开放平台的,现在是一个应用绑定一个公众号,其中一个公众号是有返回unionid,所以不知道是哪里问题
      2023-06-01
      回复
登录 后发表内容
问题标签