提交 b4de0cf6 编写于 作者: D Devil

用户名处理字符问题bug修复

上级 4e063268
......@@ -2133,7 +2133,7 @@ class UserService
// 处理展示用户
if($is_privacy === true && !empty($user['user_name_view']))
{
$user['user_name_view'] = substr($user['user_name_view'], 0, 3).'***'.substr($user['user_name_view'], -3);
$user['user_name_view'] = mb_substr($user['user_name_view'], 0, 3, 'utf-8').'***'.mb_substr($user['user_name_view'], -3, null, 'utf-8');
}
// 头像
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册