1)获取code的agentid和secret的agentid需要相同。 2)确保agentid和secret对应关系正确。 3)把保存或者缓存的access_token清理掉,重新生成。应该就好了。
企业微信扫码登录出现错误:"errcode":50001,"errmsg":"redirect_1、开发企业微信扫码登录,根据code获取用户信息出现错误:"errcode":50001,"errmsg":"redirect_uri unauthorized; 2、URL:https://qyapi.weixin.qq.com/cgi-bin/user/getuserinfo?access_token=eTizDruJDL7_en-bmBudP8sRi8-pbeTcifvtt39sL9fqOyHKEzLrhe7Yr1mTg0KJKnr5NE7NP5idTdwZvmqxAjSGlSMv7av2KTvSyeQblvGDmLNCvsBjCwCo8L2LX36wp6vvOg0dmnjef7Zs0FuLMiNcNFsAOBBxhMrt1lOtjoC-00wVgGnP_nXpk29MKFVEzDdXAAUFWAEE8uW-zmyPtA&code=5D1Mtc2BIt8tELhQr7QlDgfntfFPwQzUy5OjWPDm7GQ 返回错误:{"errcode":50001,"errmsg":"redirect_uri unauthorized, hint: [1584498733_81_bd58668981e0dce6024c7a4bfd90ac56], from ip: 110.83.16.29, more info at https://open.work.weixin.qq.com/devtool/query?e=50001"} 3、已配置了域名授权: [图片]
2022-01-20