1、{"errcode":40163,"errmsg":"code been used, rid: xxxxx"}
原因:获取token时,使用的code码被二次使用
2、{"errcode":40249,"errmsg":"this template msg has been blocked for illegal content rid:xxxx"}
原因:微信平台升级导致消息无法发送
3、{"errcode":43004,"errmsg":"require subscribe rid: xxxxx"}
原因:检查所发送消息对应人员的openId是否有关注公众号
4、{"errcode":40241,"errmsg":"The message is duplicate in 60 seconds rid: xxxx"}
原因:消息在60秒内重复
5、{"errcode":40001,"errmsg":"invalid credential, access_token is invalid
原因:缓存的token有问题,可能是并发引起缓存了无效的token,清除后重新获取。
6、微信登录失败redirect_uri 域名与后台配置不一致,错误码:10003
登录微信公众平台-公众号设置-功能设置-网页授权域名
详见redirect_uri 域名与后台配置不一致 10003 · 微尘常见问题手册 · 看云
1、小程序绑定微信开放平台账号获取union_id