dever 7 years ago
parent
commit
5191662f96
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Api.php

+ 1 - 1
src/Api.php

@@ -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) {