本帖最后由 民审-M 于 2018-1-26 13:41 编辑
适用于:
微信登录独立版 微信登录[开放平台]版 1.6.3 DZ建站学习研究分享
https://www.cgzz8.cn/t-32131-1-1.html
(出处: 草根吧)
一. https://mp.weixin.qq.com/ 注册微信服务号。
二. 登录服务号, 设置-> 微信认证 ,完成服务号认证获取高级权限(OAuth2.0网页授权)
三. 开发 -> 接口权限 -> 网页授权 点后面的修改 进入到公众号设置-功能设置页面
四. 业务域名、JS接口安全域名、网页授权域名,三项里面分别输入微信登录插件实际要使用的网址(不带http://)
五.点击:开发 -> 基本配置 ,分别获取开发者ID(AppID) 和 开发者密码(AppSecret) 到此处就完成了服务号上 所有设置。
论坛后台 => 服务号设置
Appid 对应 开发者ID(AppID) Appsecret 对应 开发者密码(AppSecret) 返回域名 对应 第四步的网页授权域名
站点主域名为论坛实际使用的网址
如果以上设置都设置完成,仍然不能正常登陆,首先登录微信服务号--基本配置--IP白名单--配置,把服务器的IP加入白名单
[color=rgb(255, 0, 0)]PS: 由于模板的多种多样和不正规性,插件开放自定义登录按钮链接,站长可以在[color=rgb(51, 51, 51)]PC/手机端任意[color=rgb(51, 51, 51)]需要的[color=rgb(51, 51, 51)]位置放上自定义按钮链接;
[color=rgb(51, 51, 51)]自定义[color=rgb(51, 51, 51)]老用户[color=rgb(51, 51, 51)]绑定微信链接:/wechatindependent-wxlogin.html;[color=rgb(51, 51, 51)]
[color=rgb(51, 51, 51)]PC端登录按钮链接:/wechatindependent-wechatlogin.html ;[color=rgb(51, 51, 51)]
[color=rgb(51, 51, 51)]移动端登录按钮链接:/plugin.php?id=wechatindependent:mobilewechatlogin; [color=rgb(51, 51, 51)]例如 (pc端登录按钮代码): [color=rgb(51, 51, 51)]<a href=[color=rgb(51, 51, 51)]”[color=rgb(51, 51, 51)]/wechatindependent-wechatlogin.htm[color=rgb(51, 51, 51)]”[color=rgb(51, 51, 51)]>微信登录</a> [color=rgb(51, 51, 51)] 教程到此结束,感谢您的使用[color=rgb(51, 51, 51)]技术支持QQ:2589693655
|