找回密码
 立即注册

QQ登录

只需一步,快速开始

整合 UCenter,同步注册到 Discuz

2024-10-31 16:17| 发布者: 4d5a8576d| 查看: 133| 评论: 6

摘要: 应用整合 UCenter,同步注册到 Discuz 的用户,在 Discuz 登录时得手动激活,用户体验很不好,查了资料修改应用下的 ./uc_client/model/user.php 文件之后不生效。  哪位大佬知道是什么问题么
应用整合 UCenter,同步注册到 Discuz 的用户,在 Discuz 登录时得手动激活,用户体验很不好,查了资料修改应用下的 ./uc_client/model/user.php 文件之后不生效。  哪位大佬知道是什么问题么
1652335339(1).jpg
来源:https://www.dismall.com/thread-12252-1-1.html
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!
发表评论

最新评论

引用 ae2942d9 2024-10-31 17:30
以discuz作为用户登录统一入口:https://addon.dismall.com/plugins/tshuz_oauth2server.html
引用 44f6fa4f5 2024-10-31 17:21
谢谢哈,原来是我一直修改的其他user.php文件,大佬,要实现同步登陆,需要哪些啊
引用 8b79 2024-10-31 17:00
如果上面的代码不行再试试这个    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member SET uid='$uid', username='$username', password='$password', email='$email', adminid='0', groupid='10', regdate='".$this->base->time."', credits='0', timeoffset='9999'");    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_status SET uid='$uid', regip='$regip', lastip='$regip', lastvisit='".$this->base->time."', lastactivity='".$this->base->time."', lastpost='0', lastsendmail='0'");    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_profile SET uid='$uid'");    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_field_forum SET uid='$uid'");    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_field_home SET uid='$uid'");    $this->db->query("INSERT INTO ".DISCUZ_DBTABLEPRE."common_member_count SET uid='$uid', extcredits1='0', extcredits2='0', extcredits3='0', extcredits4='0', extcredits5='0', extcredits6='0', extcredits7='0', extcredits8='0'");
引用 c2688 2024-10-31 16:55
搜索 function add_user 里的$this->db->query("INSERT INTO ".UC_DBTABLEPRE."memberfields SET uid='$uid'");在下边添加$this->db->query("INSERT INTO `dbname`.pre_common_member SET uid='$uid', username='$username', password='$password', email='$email', adminid='0', groupid='10', regdate='".$this->base->time."', credits='0', timeoffset='9999'");    $this->db->query("INSERT INTO `dbname`.pre_common_member_status SET uid='$uid', regip='$regip', lastip='$regip', lastvisit='".$this->base->time."', lastactivity='".$this->base->time."', lastpost='0', lastsendmail='0'");    $this->db->query("INSERT INTO `dbname`.pre_common_member_profile SET uid='$uid'");    $this->db->query("INSERT INTO `dbname`.pre_common_member_field_forum SET uid='$uid'");    $this->db->query("INSERT INTO `dbname`.pre_common_member_field_home SET uid='$uid'");    $this->db->query("INSERT INTO `dbname`.pre_common_member_count SET uid='$uid', extcredits1='0', extcredits2='0', extcredits3='0', extcredits4='0', extcredits5='0', extcredits6='0', extcredits7='0', extcredits8='0'");这是我网上搜到的答案,试试吧!*记得修改前先备份文件。
引用 db4d5a85 2024-10-31 16:46
修改的哪里,求告知
引用 2ae29 2024-10-31 16:36
解决了 修改 ./uc_server/model/user.php下的文件就可以了

查看全部评论(6)

QQ|手机版|小黑屋|梦想之都-俊月星空 ( 粤ICP备18056059号 )|网站地图

GMT+8, 2025-12-17 10:51 , Processed in 0.128305 second(s), 18 queries .

Powered by Mxzdjyxk! X3.5

© 2001-2025 Discuz! Team.

返回顶部