dever 3 years ago
parent
commit
9866f381ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/shop/lib/Info.php

+ 1 - 1
app/shop/lib/Info.php

@@ -40,7 +40,7 @@ class Info
         if (!$data) {
         if (!$data) {
             if ($type == 1) {
             if ($type == 1) {
                 $data = $this->fetch(false, $city, $lng, $lat, 10, $name, $method);
                 $data = $this->fetch(false, $city, $lng, $lat, 10, $name, $method);
-            } else {
+            } elseif ($type == 2) {
                 $data = $this->fetch(false, false, $lng, $lat, 1, $name, $method);
                 $data = $this->fetch(false, false, $lng, $lat, 1, $name, $method);
             }
             }
         }
         }