Commit 6efa2f16 authored by hujun's avatar hujun

city

parent 09760757
...@@ -249,9 +249,13 @@ class HomePageLog extends Basic ...@@ -249,9 +249,13 @@ class HomePageLog extends Basic
// $where_["f.city"] = $params['city'] ? $params['city'] : '上海市'; // $where_["f.city"] = $params['city'] ? $params['city'] : '上海市';
// } // }
if ($params['city'] != '全部' && !empty($params['city'])) { if ($params['city'] != '全部') {
if (empty($params['city'])) {
$where_["f.city"] = $this->city;
} else {
$where_["f.city"] = $params['city']; $where_["f.city"] = $params['city'];
} }
}
if (!empty($params['disc'])) { if (!empty($params['disc'])) {
$where_["f.disc"] = $params['disc']; $where_["f.disc"] = $params['disc'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment