微信API开发报错 - 小众知识

微信API开发报错

2020-08-22 06:23:23 苏内容
  标签: 微信/API
阅读:4640

微信 报错{"errcode":41002,"errmsg":"appid missing hint: [JwuG70489e575]"}

errcode":41002,

解决:

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

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


  let url = String(format: "%@?appid=%@&secret=%@&code=%@&grant_type=authorization_code", arguments:[Wechat_api_Domain,appid,secret,code])


扩展阅读
相关阅读
© CopyRight 2010-2021, PREDREAM.ORG, Inc.All Rights Reserved. 京ICP备13045924号-1