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