调用convert_to_userid接口将openid转userid时返回错误码40073?
发布于 4 年前 作者 yandong 13500 次浏览 来自 官方Issues

开发者工具/小程序模式 调用wx.login方法获取code,在服务端调用https://api.weixin.qq.com/sns/jscode2session接口拿到openid,再调用https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_userid接口拿到userid。返回了状态码40073

{"errcode":40073,"errmsg":"Warning: wrong json format.  invalid openId, hint: [1621432569_197_6ae26502ec37b57e3c4fb1ce034bc218], from ip: 58.19.1.36, more info at https://open.work.weixin.qq.com/devtool/query?e=40073"}

为什么说open_id无效呢?

另外,我想知道除上述接口外,运行在微信端的小程序如何获取企业微信的员工信息userid?

APPID:wx8c3543e7a39e925c

企业ID:wxc0d5e05946cff6e1

1 回复

不用另外,实际上是一个问题,不支持。自行维护

回到顶部