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])