dever 3 年之前
父節點
當前提交
934a42e72a
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/shop/lib/Info.php

+ 3 - 2
app/shop/lib/Info.php

@@ -55,8 +55,9 @@ class Info
             }
         }
 
-        $data = $this->fetch(false, $city, $lng, $lat, 1, $name, $method);
-
+        if ($city) {
+            $data = $this->fetch(false, $city, $lng, $lat, 1, $name, $method);
+        }
         
         $type = Dever::input('type', 1);
         if (!$data) {