jsapi支付 根据code获取openid 报错{"errcode":48001,"errmsg"

微信支付 文章 2022-04-08 14:40 0 全屏看文

jsapi支付 根据code获取openid 报错{"errcode":48001,"errmsg"jsapi payment Get openid according to the code and report an error {"errcode":48001,"errmsg"

jsapi支付 根据code获取openid 报错{"errcode":48001,"errmsg"

https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appId + "&secret=" + appSecret + "&code=" + code + "&grant_type=authorization_code

appid:wx3d48e566bdbb5944

https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appId + "&secret=" + appSecret + "&code=" + code + "&grant_type=authorization_code appid:wx3d48e566bdbb5944

回答:

Jay.:jsapi支付 根据code获取openid 报错{"errcode":48001,"errmsg"写下你的回答发表
Mr.Zhao:

wx3d48e566bdbb5944这个是小程序的吗

π_π:是的 小程序的
Mr.Zhao:这个接口是服务号的,不要乱用接口
π_π:

根据code获取openid时报错的

-EOF-