迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
请问官方有没有做ucenter整合方面的打算,一直不能进行各个站之间的会员整合,以前版本都有这个插件,但是现在完全没有了,希望官方能重视下各个站之间用户整合的问题
define('UC_CONNECT', 'mysql');
define('UC_CONNECT', 'mysqli');
convert_encoding($post['username'],'utf-8','GBK')
convert_encoding(****,'utf-8','GBK')
$post['username']
17164027648e5093.zip
/** * 兼容性转码 * * 系统转换编码调用此函数, 会自动根据当前环境采用 iconv 或 MB String 处理 * * @param string * @param string * @param string * @return string */ function convert_encoding($string, $from_encoding = 'GBK', $target_encoding = 'UTF-8') { if (function_exists('mb_convert_encoding')) { return mb_convert_encoding($string, str_replace('//IGNORE', '', strtoupper($target_encoding)), $from_encoding); } else { if (strtoupper($from_encoding) == 'UTF-16') { $from_encoding = 'UTF-16BE'; } if (strtoupper($target_encoding) == 'UTF-16') { $target_encoding = 'UTF-16BE'; } if (strtoupper($target_encoding) == 'GB2312' or strtoupper($target_encoding) == 'GBK') { $target_encoding .= '//IGNORE'; } return iconv($from_encoding, $target_encoding, $string); } }
/config/hooks.php 第23、32、52、59、76行中间有这样的代码因为我之前的Ucenter编码是GBK的,如果你的Ucenter是UTF8编码的,这几行涉及的编码转换的功能都要去掉除去****,上面的代码都删掉,只保留像
这种参数就行
17164027648e5093.zip