|
@@ -88,6 +88,9 @@ class Api
|
|
|
$result[$k] = $this->getName('province', $v, true);
|
|
|
} elseif ($k == 1) {
|
|
|
$result[$k] = $this->getName('city', $v, true);
|
|
|
+ if ($result[0]['name'] == $result[1]['name']) {
|
|
|
+ unset($result[1]);
|
|
|
+ }
|
|
|
} elseif ($k == 2) {
|
|
|
$result[$k] = $this->getName('county', $v, true);
|
|
|
}
|