dever 3 jaren geleden
bovenliggende
commit
5a8397a117
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      app/shop/lib/Info.php

+ 4 - 0
app/shop/lib/Info.php

@@ -97,6 +97,10 @@ class Info
 
         $where = 'type = '.$type.' and status = 1 and state = 1';
 
+        $county = Dever::db('area/county')->find($city);
+        if ($county) {
+            $city = $county['id'];
+        }
         if ($type == 1 && $city) {
             $where .= ' and city = ' . $city;
         }