Commit 04819e85 authored by hujun's avatar hujun

city

parent 831511ee
......@@ -243,18 +243,14 @@ class HomePageLog extends Basic
$where_["f.create_time"] = array('between', array($start_time, $end_time));
}
if (empty($params['city'])) {
$where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市';
}
// if (empty($params['city'])) {
// $where_["f.city"] = trim($this->city) ? trim($this->city) : '上海市';
// } else {
// $where_["f.city"] = $params['city'] ? $params['city'] : '上海市';
// }
if ($this->city != '全部') {
$where_["f.city"] = $this->city;
if ($params['city'] != '全部') {
$where_["f.city"] = $params['city'];
}
if (!empty($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