diff --git a/src/Ip.php b/src/Ip.php index f21c3d6..8de280a 100644 --- a/src/Ip.php +++ b/src/Ip.php @@ -272,11 +272,11 @@ public static function locations() $locationCode = []; $locationCode["北京"] = [ "code" => "110000", - "cities" => [], + "cities" => ["北京市" => "110100"], ]; $locationCode["天津"] = [ "code" => "120000", - "cities" => [], + "cities" => ["天津市" => "120100"], ]; $locationCode["河北"] = [ "code" => "130000", @@ -304,7 +304,7 @@ public static function locations() ]; $locationCode["上海"] = [ "code" => "310000", - "cities" => [], + "cities" => ["上海市" => "310100"], ]; $locationCode["江苏"] = [ "code" => "320000", @@ -356,7 +356,7 @@ public static function locations() ]; $locationCode["重庆"] = [ "code" => "500000", - "cities" => [], + "cities" => ["重庆市" => "500100"], ]; $locationCode["四川"] = [ "code" => "510000", @@ -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; }