收藏
回答

先获取令牌,再获取授权码,但是总是提示令牌无效或不是最新的?

1.首先令牌可以获取:微信接口https://api.weixin.qq.com/cgi-bin/component/api_component_token
2.通过令牌返回的component_access_token获取授权码:
  https://api.weixin.qq.com/cgi-bin/component/api_create_preauthcode?component_access_token=COMPONENT_ACCESS_TOKEN
3.提示错误信息:
 {"response":"{\"errcode\":40001,\"errmsg\":\"invalid credential, access_token is invalid or not latest rid: 60b4c4b5-5ed6673c-6136b24b\"}
 出现的问题一是,请求令牌接口是否有误,如果没有错误,令牌是实时获取的,怎么还会提示access_token 不最新的呢?

平台APPID: wx28c44f9240c0f8ed
最后一次编辑于  2021-05-31
回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容