收藏
回答

代授权的公众号调用该接口返回错误 48001

https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/miniprogram-management/basic-info-management/getAccountBasicInfo.html

详细错误是:{"errcode":48001,"errmsg":"api unauthorized rid: 67242b63-23033e9e-18271c62"}

我这边三方平台服务器在公众号或小程序授权后,都会调用这个接口获取 app 信息;其中有两个公众号和两个小程序调用这个接口都是没问题的,就只有一个调用该接口失败,这个公众号后台也查看了,和其他公众号授权信息一样

就只有这个接口调不了。其他的接口:公众号菜单、粉丝列表 以及 cgi-bin/component/api_get_authorizer_info 都能调通。

最后一次编辑于  2024-11-01
回答关注问题邀请回答
收藏

1 个回答

  • 第三方平台小助手
    第三方平台小助手
    2024-11-04

    你好,请现在重试下,是否可以成功呢?

    2024-11-04
    有用
    回复 5
    • 郭鹏
      郭鹏
      2024-11-22
      你好,今天试了下,这个接口还是调不了。{"errcode":48001,"errmsg":"api unauthorized rid: 67403ef3-0968ade7-0f6b8ac2"}
      2024-11-22
      回复
    • 郭鹏
      郭鹏
      2024-11-22
      其他的接口,感觉都能调,就这个不行。如果是因为是公众号的原因, 那请求有没有替代的这种获取应用信息的接口啦
      2024-11-22
      回复
    • 第三方平台小助手
      第三方平台小助手
      2024-11-25回复郭鹏
      请现在调用获取授权账号详情 https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/authorization-management/getAuthorizerInfo.html 接口查询下,提供调用接口请求包(包括使用的token)、回包、操作时间点信息
      2024-11-25
      回复
    • 郭鹏
      郭鹏
      2024-11-28
      [2024-11-28T15:05:21.387479+08:00] EasyWeChat.DEBUG: >>>>>>>>
      POST /cgi-bin/component/api_get_authorizer_info?component_access_token=86_GEGuRxj3krMOQXOC6OOpVzkYj6dFHvaZzcAmbQereZi9ak8rw0cdxZJAeOsNDPyZEFwQmP3qMVC7uGdV3CtPsI9l1bzgwDLypkcsj4enh8XTiWifS8HO-WOftGUCGBcAIAKOJ HTTP/1.1^M
      Host: api.weixin.qq.com^M
      Content-Length: 80^M
      User-Agent: GuzzleHttp/7^M
      Content-Type: application/json^M
      ^M
      {"component_appid":"wx2930911402a304e0","authorizer_appid":"wx79294fc7356b899f"}
      <<<<<<<<
      HTTP/1.1 200 OK^M
      Connection: keep-alive^M
      Content-Type: application/json; encoding=utf-8^M
      Date: Thu, 28 Nov 2024 07:05:21 GMT^M
      Content-Length: 2981^M




      {"authorizer_info":{"nick_name":"Magook\u5927\u6a21\u578b","head_img":"http:\/\/wx.qlogo.cn\/mmopen\/VkdhEXcr5iafuqo61GEJnVARenEiaVNj2zp89bJd6U0cNjIBmJfbWC9gGKv0vXS4W8bMqwVb3fNM0QDCvE0dibfE9ibBGMRxiaQmY4B21aDSxK1ZEFJrKEKS0pMyouRJZBkjW\/0","service_type_info":{"id":2},"verify_type_info":{"id":0},"user_name":"gh_285655f7a40e","alias":"","qrcode_url":"http:\/\/mmbiz.qpic.cn\/sz_mmbiz_jpg\/2tE6NZNLEQ14IpIWU3ha8VMZdMsqGtKjubrR3UP8dh168LExlw0Je6Ut6cGRupmt85CXibWCXmic1qbW1NWeicpOQ\/0","business_info":{"open_pay":0,"open_shake":0,"open_scan":0,"open_card":0,"open_store":0},"idc":1,"principal_name":"\u9999\u6e2f\u9f0e\u68ee\u79d1\u6280\u6709\u9650\u516c\u53f8 HONG KONG MAGOOK TECHNOLOGY LIMITED","signature":"\u516c\u53f8\u7684AI\u5927\u6a21\u578b\u5e94\u7528\u4ea7\u54c1\u7531\u901a\u7528\u6a21\u578b\u9a71\u52a8\uff0c\u5e7f\u6cdb\u9002\u7528\u4e8e\u5782\u76f4\u884c\u4e1a\u4e8b\u52a1\u6027\u53ca\u521b\u9020\u6027\u7684\u5e94\u7528\u3002\u968f\u7740\u5927\u8bed\u8a00\u6a21\u578b\u5feb\u901f\u8fed\u4ee3\uff0c\u6709\u671b\u91cd\u5851\u5e72\u884c\u767e\u4e1a\u3001\u8d4b\u80fd\u4e0d\u540c\u804c\u80fd\u7684\u77e5\u8bc6\u578b\u5de5\u4f5c\u3002\u516c\u53f8\u4ea7\u54c1\u548c\u670d\u52a1\u5305\u62ec\u5782\u76f4\u884c\u4e1a\u5927\u8bed\u8a00\u6a21\u578b\u3001\u5143\u5b87\u5b99\u865a\u62df\u7a7a\u95f4\u3001\u5143\u5b87\u5b99\u6570\u4f4d\u4eba\u3001AI\u673a\u5668\u4eba\u7b49\u3002","account_status":1},"authorization_info":{"authorizer_appid":"wx79294fc7356b899f","authorizer_refresh_token":"refreshtoken@@@caQ0RQ3U2_UQuKP6hSXgSNs_PqhzPeYG5v-yWRV6JCk","func_info":[{"funcscope_category":{"id":1},"confirm_info":{"need_confirm":1,"already_confirm":0,"can_confirm":1}},{"funcscope_category":{"id":2},"confirm_info":{"need_confirm":1,"already_confirm":0,"can_confirm":1}},{"funcscope_category":{"id":3},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":4}},{"funcscope_category":{"id":5}},{"funcscope_category":{"id":6}},{"funcscope_category":{"id":7}},{"funcscope_category":{"id":8},"confirm_info":{"need_confirm":1,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":9}},{"funcscope_category":{"id":10}},{"funcscope_category":{"id":11},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":12}},{"funcscope_category":{"id":13}},{"funcscope_category":{"id":15}},{"funcscope_category":{"id":22}},{"funcscope_category":{"id":23},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":24},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":26}},{"funcscope_category":{"id":27},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":33},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":34}},{"funcscope_category":{"id":35}},{"funcscope_category":{"id":44},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":46}},{"funcscope_category":{"id":47}},{"funcscope_category":{"id":54}},{"funcscope_category":{"id":66}},{"funcscope_category":{"id":89}},{"funcscope_category":{"id":113}},{"funcscope_category":{"id":121},"confirm_info":{"need_confirm":0,"already_confirm":0,"can_confirm":0}},{"funcscope_category":{"id":172}}]}}
      2024-11-28
      回复
    • 郭鹏
      郭鹏
      2024-11-28
      不好意思,最近忙其他的,没注意社区回复,上面就是getAuthorizerInfo 调用相关信息
      2024-11-28
      回复
登录 后发表内容