{“errcode”:48001,“errmsg”:“api unauthorized, hints: [ req_id: 8dBQDa0574th24 ]”}
https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx7b7ef4f0a593a157&secret=1c2c4634d510a3bca783fcd7948cb008&code=021uI5pt1t3kzb07KQst1IvTot1uI5pk&grant_type=authorization_code
你好。问题中描述的接口。
https://api.weixin.qq.com/sns/oauth2/access_token?appid={0}&secret={1}&code={2}&grant_type=authorization_code
不能用于小程序登录流程。请按照官方文档wx.login去使用。