dever 7 年之前
父節點
當前提交
5191662f96
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {