Commit b029e719 authored by hujun's avatar hujun

条件

parent df5e5a28
......@@ -90,8 +90,12 @@ class Remark extends Basic
$site_id = $this->params['site_id'];
}
$if_search = false;
$is_today = true;
if (date('Y-m-d') == $this->params['start_date'] && date('Y-m-d') == $this->params['end_date']) {
$is_today = false;
}
if ($site_id == "10001" && ($this->params['agent_id'] > 0 || !empty($this->params["content"])) && empty($this->params['user_id'])) {
if ($site_id == "10001" && ($this->params['agent_id'] > 0 || !empty($this->params["content"])) && $is_today) {
$searchService = new SearchService();
$this->params['search_content'] = $this->params['content'];
$this->params['start_time'] = strtotime($this->params['start_date']);
......
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