求助!!! 小程序授权给了三方平台,使用小程序自己的 token获取小程序码提示
{"errcode":61024,"errmsg":"must use api(api_component_token) to get token for component acct rid: 65a4e490-2809de6e-3f40c316"}
使用三方平台授权小程序 authorizer_access_token ,报错48001请求如下
ContentLength:108,Content:{"scene":"ukId=63005","page":"pageDetail/Detail/index","width":170,"env_version":"trial","check_path":false}
响应:
48001 api unauthorized rid: 65a516b6-269ec298-67353cb8
怎么解决?
你好,1、报错{"errcode":61024,"errmsg":"must use api(api_component_token) to get token for component acct rid: 65a4e490-2809de6e-3f40c316"},你实际调用的是获取小程序token接口/cgi-bin/token,传错了账号信息
2、报错{"errcode":48001,"errmsg":"api unauthorized rid: 65a516b6-269ec298-67353cb8"},调用的是/wxa/getwxacodeunlimit接口,第三方平台代调用的时候要使用authorizer_access_token,你用错token了,如何代商家调用接口:https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/getting_started/how_to_call_api.html
后续遇到此类问题可参考https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/troubleshooting/third_party_authority_instructions_troubleshooting.html自查;
开发者也可以调用接口https://developers.weixin.qq.com/doc/oplatform/openApi/OpenApiDoc/openapi/getRidInfo.html自查rid信息