生成小程序二维码报错:{“errcode“:41002,“errmsg“:“appid missing hint: [F45W7a05900001]“}

生成小程序二维码报错:{"errcode":41002,"errmsg":"appid missing hint: [F45W7a05900001]"}

errcode":41002,这个错误是由于我们请求微信接口时候,传入的参数有误,请检查下url和参数是否都规范正确

解决方案:

微信接口没有收到正确的appid,所以,你需要检测下url!

//https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code

检查一下配置中是否读取到appKey和appSecret

你可能感兴趣的:(微信-小程序)