Skip to content

Commit

Permalink
Merge pull request #25 from uuidcoder/master
Browse files Browse the repository at this point in the history
feat:补全港澳台
  • Loading branch information
zhuzhichao authored Aug 29, 2023
2 parents a7c180b + 4162e40 commit 24b7424
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/Ip.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ public static function locations()
$locationCode = [];
$locationCode["北京"] = [
"code" => "110000",
"cities" => [],
"cities" => ["北京市" => "110100"],
];
$locationCode["天津"] = [
"code" => "120000",
"cities" => [],
"cities" => ["天津市" => "120100"],
];
$locationCode["河北"] = [
"code" => "130000",
Expand Down Expand Up @@ -304,7 +304,7 @@ public static function locations()
];
$locationCode["上海"] = [
"code" => "310000",
"cities" => [],
"cities" => ["上海市" => "310100"],
];
$locationCode["江苏"] = [
"code" => "320000",
Expand Down Expand Up @@ -356,7 +356,7 @@ public static function locations()
];
$locationCode["重庆"] = [
"code" => "500000",
"cities" => [],
"cities" => ["重庆市" => "500100"],
];
$locationCode["四川"] = [
"code" => "510000",
Expand Down Expand Up @@ -394,6 +394,18 @@ public static function locations()
"code" => "650000",
"cities" => ["乌鲁木齐市" => "650100", "克拉玛依市" => "650200", "吐鲁番地区" => "652100", "哈密地区" => "652200", "昌吉回族自治州" => "652300", "博尔塔拉蒙古自治州" => "652700", "巴音郭楞蒙古自治州" => "652800", "阿克苏地区" => "652900", "克孜勒苏柯尔克孜自治州" => "653000", "喀什地区" => "653100", "和田地区" => "653200", "伊犁哈萨克自治州" => "654000", "塔城地区" => "654200", "阿勒泰地区" => "654300", "石河子市" => "659001", "阿拉尔市" => "659002", "图木舒克市" => "659003", "五家渠市" => "659004"],
];
$locationCode["台湾"] = [
"code" => "710000",
"cities" => ['台北市' => "710100",'高雄市' => "710200",'台南市' => "710300",'台中市' => "710400",'金门县' => "710500",'南投县' => "710600",'基隆市' => "710700",'新竹市' => "710800",'嘉义市' => "710900",'新北市' => "711100",'宜兰县' => "711200",'新竹县' => "711300",'桃园县' => "711400",'苗栗县' => "711500",'彰化县' => "711700",'嘉义县' => "711900",'云林县' => "712100",'屏东县' => "712400",'台东县' => "712500",'花莲县' => "712600",'澎湖县' => "712700",'连江县' => "712800"],
];
$locationCode["香港"] = [
"code" => "810000",
"cities" => ["香港" => "810100"],
];
$locationCode["澳门"] = [
"code" => "820000",
"cities" => ["澳门" => "820100"],
];

return $locationCode;
}
Expand Down

0 comments on commit 24b7424

Please sign in to comment.