使用基础库 2.21.2 用code去服务端调用 getPhoneNumber报错?
发布于 3 年前 作者 xiulanbai 11703 次浏览 来自 官方Issues

使用基础库 2.21.2 用code去服务端调用 getPhoneNumber报错 errcode:41001,“errmsg”:"access_token missing rid,可服务端的access_token没有问题,使用同样的access_token都可以成功发送模版消息。



2 回复

这个报错是说 access_token 传空了,而 access_token 拼接在接口后面的。。。

POST https://api.weixin.qq.com/wxa/business/getuserphonenumber?access_token=xxxxxxx

missing 就是没传过去,跟token有没有失效没关系

回到顶部