Browse Source

支付

master
jianglong 3 years ago
parent
commit
5656c50154
  1. 2
      .idea/vcs.xml
  2. 4
      app/common/logic/RegionLogic.php

2
.idea/vcs.xml

@ -2,5 +2,7 @@
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" /> <mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/vendor/xin/container" vcs="Git" />
<mapping directory="$PROJECT_DIR$/vendor/xin/helper" vcs="Git" />
</component> </component>
</project> </project>

4
app/common/logic/RegionLogic.php

@ -90,8 +90,8 @@ class RegionLogic extends Logic
public static function getChineseFirstLetter($string) { public static function getChineseFirstLetter($string) {
if (empty($string)) {return '';} if (empty($string)) {return '';}
$firstChineseChar = $string;
$firstChineseChar = mb_substr($string, 0, 1, 'UTF-8'); // $firstChineseChar = mb_substr($string, 0, 1, 'UTF-8');
if(cache($firstChineseChar)){ if(cache($firstChineseChar)){
return cache($firstChineseChar); return cache($firstChineseChar);
} }

Loading…
Cancel
Save