From dd5a03ee6511f83e040da349cac900c30063c582 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 19 Jul 2024 09:52:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(IndexController):=20=E6=A0=B9=E6=8D=AE?= =?UTF-8?q?=E5=90=8D=E5=AD=97=E9=95=BF=E5=BA=A6=E4=BF=AE=E6=94=B9=E6=9C=80?= =?UTF-8?q?=E5=90=8E=E4=B8=80=E4=BD=8D=E5=AD=97=E7=AC=A6=E7=9A=84=E5=A4=84?= =?UTF-8?q?=E7=90=86=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/statistics/controller/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/statistics/controller/IndexController.php b/app/statistics/controller/IndexController.php index 8780db17f..30c833111 100644 --- a/app/statistics/controller/IndexController.php +++ b/app/statistics/controller/IndexController.php @@ -287,7 +287,7 @@ class IndexController extends BaseLikeController $lastStr = mb_substr($name, -1, 1); // 获取名字的最后一个字符 $replaceStr = ''; // 初始化替换字符串 if ($strlen == 2) { - return $firstStr . $replaceStr; + return $firstStr . '*'; } else { for ($i = 0; $i < $strlen - 2; $i++) { $replaceStr .= '*'; // 根据需要替换的字符数量,生成相应数量的星号