chenchen 发表于 2022-4-11 17:15:49

关于微信公众号的对接

问题1:微信公众号的“绑定账号”和“工作页面”需不需要设置微信单点登录?

问题2:如果在公众号不需要设置单点的情况下使用官网提供的URL,为什么会提示如图所示?


①绑定账号:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1c0c41e607a8b6fe&redirect_uri=【https】%3A%2F%2F【sample.o2oa.net】%2Fx_desktop%2Fmpweixinsso.html%3Ftype%3Dbind&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect需要注意修改【】符号包含的内容。第一个是http 或 https第二个是O2OA访问域名我使用的是:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1c0c41e607a8b6fe&redirect_uri=http%3A%2F%2Fwww.域名%2Fx_desktop%2Fmpweixinsso.html%3Ftype%3Dbind&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect②工作页面:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1c0c41e607a8b6fe&redirect_uri=【https】%3A%2F%2F【sample.o2oa.net】%2Fx_desktop%2Fmpweixinsso.html%3Ftype%3Dlogin%26redirect%3Dportalmobile.html%253Fid%253D【mobilePortal】&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect需要注意修改【】符号包含的内容。第一个是http 或 https第二个是O2OA访问域名第三个是跳转的门户ID我使用的是:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1c0c41e607a8b6fe&redirect_uri=http%3A%2F%2Fwww.域名%2Fx_desktop%2Fmpweixinsso.html%3Ftype%3Dlogin%26redirect%3Dportalmobile.html%253Fid%253D门户标识&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect


飞龙在天 发表于 2022-4-12 09:58:50

本帖最后由 FancyLou 于 2022-4-12 09:59 编辑

这个提示应该是你公众号那边没有配置你们这个域名,你去公众号开发管理那边找找有需要配置访问域名的,找不到可以自行网上去搜搜,公众号的设置问题网上有很多文章的
页: [1]
查看完整版本: 关于微信公众号的对接