Commit 67c4e521 authored by zw's avatar zw

bug

parent bcf39507
...@@ -87,12 +87,12 @@ class HomePageLog extends Basic ...@@ -87,12 +87,12 @@ class HomePageLog extends Basic
$where = ' 1=1 '; $where = ' 1=1 ';
if (!empty($params["search_content"])) { if (!empty($params["search_content"])) {
$search_content = trim($params['search_content']); $search_content = trim($params['search_content']);
$where_["f.content"] = array( "like", "%" . $search_content . "%" ); $where_["content"] = array( "like", "%" . $search_content . "%" );
$where .= " AND content LIKE '%$search_content%'"; $where .= " AND content LIKE '%$search_content%'";
} }
if (!empty($params["start_time"]) && !empty($params["end_time"])) { if (!empty($params["start_time"]) && !empty($params["end_time"])) {
$where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) ); $where_["create_time"] = array( 'between', array( $start_time, $end_time ) );
$where .= ' AND create_time BETWEEN "'.$start_time.'" AND "'.$end_time .'"'; $where .= ' AND create_time BETWEEN "'.$start_time.'" AND "'.$end_time .'"';
} }
......
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