dever 3 lat temu
rodzic
commit
70c6a9309b
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      app/shop/lib/Info.php

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

@@ -36,7 +36,8 @@ class Info
         $data = $this->fetch(false, $city, $lng, $lat, 1, $name, $method);
 
         # 验证本城市内有没有店
-        if (!$data) {
+        $type = Dever::input('type', 1);
+        if (!$data && $type == 1) {
             $data = $this->fetch(false, $city, $lng, $lat, 10, $name, $method);
         }