diff --git a/application/service/GoodsCommentsService.php b/application/service/GoodsCommentsService.php index b894ccd908d4470431e905314e228a9d4912099f..8dfdab78c892f9c2abb585bcd4da5fb443697a07 100644 --- a/application/service/GoodsCommentsService.php +++ b/application/service/GoodsCommentsService.php @@ -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;