调用convert_to_userid接口将openid转userid时返回错误码43004

小游戏 企业微信 微信支付 小程序 文章 2020-07-30 21:05 991 0 全屏看文

AI助手支持GPT4.0

调用convert_to_userid接口将openid转userid时返回错误码43004
项目中,小程序调用wx.login方法获取code,在服务端调用https://api.weixin.qq.com/sns/jscode2session接口拿到openid,再调用https://qyapi.weixin.qq.com/cgi-bin/user/convert_to_userid接口拿到userid。但是在调用convert_to_userid接口时,有些正常返回userid,有些账号返回43004,查了这个错误码,说原因是指定的userid未绑定微信或未关注微工作台(原企业号),但是这些微信号都不是企业内部成员,为什么有些就能获取到userid?项目已经在生产运行的,最近一周这种情况很严重,之前偶尔出现。ps:最近一个月没有发版。有大佬帮忙解答一下吗?非常感谢!

In the project, the applet calls wx.login Method to get the code and call it on the server side https://api.weixin.qq.com/sns/jscode2session Interface to get openid, and then call https://qyapi.weixin.qq.com/cgi-bin/user/convert_ To_ The userid interface gets the userid. But you are calling convert_ To_ When using the userid interface, some users return userid normally and some accounts return 43004. After checking this error code, they say that the reason is that the specified userid is not bound to wechat or does not pay attention to the micro workbench (the original enterprise number), but these micro signals are not internal members of the enterprise. Why can some users get the userid? The project has been in production and operation. This situation is very serious in the last week, and it happened occasionally before. PS: no release in the last month. Do you have any help to answer it? Thank you very much.

回答:

企业微信运营专员-千夜:

您好,如果用户是企业内的成员,那么他消费code的时候就会返回用户的userid了的了,非企业内成员是不会返回userid的,这里非企业内成员也能获取到userid能否提供下截图 openid 转换获取到的corpid和userid看下

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
调起统一下单接口时,total_fee参数的最大值是多少?
下面的方式企业微信到吗登录第三方怎么监听登录成功?
提交审核填写的相关信息游戏中没有涉及怎么办?
Cocos creator 发布到微信小游戏音乐分包加载,ios报错如下,直接打不开页面,安卓正常
同一个客户被企业多个员工添加,该客户被多次打扰的问题如何解决?
随便看看
微信公众号免300认证教程 4955
小程序已经上线,作为管理员无法在小程序数据助手查看数据? 4072
小程序广告组件通过审核,但是小程序内没有显示广告? 4153
企业微信通讯录账号被管理员误/恶意删除,怎么办? 8017
问题? 7254
如何快速搭建抽奖助手小程序(无需代码知识) 5038
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 5993
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 5510
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 5206
如何解决渲染层网络错误Failed to load media? 16561