From 82a926c899ae8323ee020f45f515b718a22362e8 Mon Sep 17 00:00:00 2001 From: Devil Date: Thu, 14 Jan 2021 14:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E7=94=A8=E6=88=B7=E6=98=B5?= =?UTF-8?q?=E7=A7=B0=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/service/GoodsCommentsService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/service/GoodsCommentsService.php b/application/service/GoodsCommentsService.php index b894ccd90..8dfdab78c 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;