这边使用回调传来的code获取‘使用授权码获取授权信息(https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/authorization_info.html)’,然后使用该接口返回的 authorizer_access_token 去请求‘获取/刷新接口调用令牌(https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.html)’接口获取店铺授权信息,但此时接口报错了,返回报文:{"errcode":61023,"errmsg":"refresh_token is invalid rid: 62b2e603-7d737b55-66c7a731"},我的刷新token是前一秒调用接口获取的,为什么还提示我非法的?
你好,请求包信息请参考接口文档正确传参https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/token/api_authorizer_token.htmlauthorizer_refresh_token的格式是refreshtoken@@@XXX,这边可以通过接口https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/Account_Authorization/api_get_authorizer_list.html重新获取下refresh_token信息
此外,开发者还可以通过接口https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/openApi/get_rid_info.html自查rid信息