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 .= '*'; // 根据需要替换的字符数量,生成相应数量的星号