rabin há 2 anos atrás
pai
commit
9b29adcc8a
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/Api.php

+ 2 - 2
src/Api.php

@@ -121,7 +121,7 @@ class Api
      *
      * @return mixed
      */
-    public function string($area, $im = ',', $unset = true, $name = '不限', $check = false)
+    public function string($area, $im = ',', $name = '不限', $unset = true, $check = false)
     {
         if ($area) {
             if (is_string($area)) {
@@ -133,7 +133,7 @@ class Api
                 if ($k == 0) {
                     $result[$k] = $this->getName('province', $v, false, 'id', $name);
                 } elseif ($k == 1) {
-                    $result[$k] = $this->getName('city', $v);
+                    $result[$k] = $this->getName('city', $v, false, 'id', $name);
                     if (isset($result[0]) && $result[0] == $result[1] && $unset) {
                         unset($result[1]);
                     }