1.第一步使用https://open.weixin.qq.com/connect/oauth2/authorize,前端授权了,拿到了code,把code值传到Java后台
2.第二步使用https://api.weixin.qq.com/sns/oauth2/component/access_token 这个接口拿到access_token,返回了{"access_token":"69_RyCBAUpPBdXOv63PoqioAQhLZpcIc9SDZ_dxRe6AKdr5WCXu-F-VOZw51S6cp-hQ2hzdXfLtMVwJ5LXWokWcpD0OdUkdBNKJfebfhUNhBys","expires_in":7200,"refresh_token":"69_ie1k2tvSyZvCgdj7y6kN6orvS3gdjKRDxIakV_Tb_wglg_nla1Gu5GL5OhlS7fH6-_tLZVMA1HFEgmI6Mv0c8ku24dPHg-dU8Z8I8A5uDiA","openid":"o9gAP0_Rc15f5Zrwq4z3ww9PXVd8","scope":"snsapi_base"}
3.第三步在把code值和access_token值传到https://api.weixin.qq.com/wxa/business/getuserphonenumber接口,提示access_token is invalid or not latest
是什么原因?
hhttps://api.weixin.qq.com/sns/oauth2/component/access_token 这个接口拿到access_tokenttps://api.weixin.qq.com/sns/oauth2/component/access_token 这个接口拿到access_tokenhttps://api.weixin.qq.com/sns/oauth2/component/access_token 这个接口拿到access_token
你这是小程序?