评论用户昵称优化

feat/task1-c-wallet
Devil 2021-01-14 14:05:40 +08:00
parent 7e87abec90
commit 82a926c899
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class GoodsCommentsService
{
$v['user'] = [
'avatar' => $user['avatar'],
'user_name_view' => ($v['is_anonymous'] == 1) ? '匿名' : mb_substr($user['user_name_view'], 0, 3, 'utf-8').'***'.mb_substr($user['user_name_view'], -3, null, 'utf-8'),
'user_name_view' => ($v['is_anonymous'] == 1) ? '匿名' : mb_substr($user['user_name_view'], 0, 1, 'utf-8').'***'.mb_substr($user['user_name_view'], -1, null, 'utf-8'),
];
} else {
$v['user'] = $user;