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

feat/task1-c-wallet
Devil 2019-12-28 23:29:04 +08:00
parent 4e063268b6
commit b4de0cf66a
1 changed files with 1 additions and 1 deletions

View File

@ -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');
}
// 头像