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