dever 3 年之前
父节点
当前提交
5a8397a117
共有 1 个文件被更改,包括 4 次插入0 次删除
  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;
         }