Skip to content

Commit

Permalink
fix: 修正分隔符
Browse files Browse the repository at this point in the history
  • Loading branch information
linkunyuan committed Nov 29, 2024
1 parent e3992fb commit cc3e37c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/function.php
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ function geo($ip = '', $num = 'all')

$arr = explode("\t", $region);
// 业务需求,港澳台跟大陆一样保持在第一级
$str = str_replace(['中国–台湾', '中国–香港', '中国–澳门', '中国-'], ['中国台湾–台湾', '中国香港–香港', '中国澳门–澳门', '中国'.config('INLAND').'-'], $arr[0]);
$str = str_replace(['中国–台湾', '中国–香港', '中国–澳门', '中国'], ['中国台湾–台湾', '中国香港–香港', '中国澳门–澳门', '中国'.config('INLAND').''], $arr[0]);
$arr = explode('', $str);

return is_numeric($num) ? $arr[$num] : $arr;
Expand Down

0 comments on commit cc3e37c

Please sign in to comment.