From 5656c50154ccdce70c7fe77c00016af2e0e50008 Mon Sep 17 00:00:00 2001 From: jianglong Date: Thu, 28 Sep 2023 15:07:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/vcs.xml | 2 ++ app/common/logic/RegionLogic.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index 35eb1dd..405c683 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,5 +2,7 @@ + + \ No newline at end of file diff --git a/app/common/logic/RegionLogic.php b/app/common/logic/RegionLogic.php index 3590b82..8df785a 100644 --- a/app/common/logic/RegionLogic.php +++ b/app/common/logic/RegionLogic.php @@ -90,8 +90,8 @@ class RegionLogic extends Logic public static function getChineseFirstLetter($string) { if (empty($string)) {return '';} - - $firstChineseChar = mb_substr($string, 0, 1, 'UTF-8'); + $firstChineseChar = $string; +// $firstChineseChar = mb_substr($string, 0, 1, 'UTF-8'); if(cache($firstChineseChar)){ return cache($firstChineseChar); }