Commit fcbea741 authored by zhuwei's avatar zhuwei

搜索时间不能大于30天

parent 74860372
...@@ -90,8 +90,8 @@ class HomePageLog extends Basic ...@@ -90,8 +90,8 @@ class HomePageLog extends Basic
} }
if (!empty($params["start_time"]) && !empty($params["end_time"])) { if (!empty($params["start_time"]) && !empty($params["end_time"])) {
$time = strtotime($end_time) - strtotime($start_time); $time = strtotime($end_time) - strtotime($start_time);
if ($time > 1296000 || $time < 0) { if ($time > 2592000 || $time < 0) {
return $this->response(101, '搜索时间不能大于15天'); return $this->response(101, '搜索时间不能大于30天');
} }
$where_["create_time"] = array( 'between', array( $start_time, $end_time ) ); $where_["create_time"] = array( 'between', array( $start_time, $end_time ) );
...@@ -202,8 +202,8 @@ class HomePageLog extends Basic ...@@ -202,8 +202,8 @@ class HomePageLog extends Basic
$end_time = date("Y-m-d H:i:s", $params["end_time"]); $end_time = date("Y-m-d H:i:s", $params["end_time"]);
$time = strtotime($end_time) - strtotime($start_time); $time = strtotime($end_time) - strtotime($start_time);
if ($time > 1296000 || $time < 0) { if ($time > 2592000 || $time < 0) {
return $this->response(101, '搜索时间不能大于15天'); return $this->response(101, '搜索时间不能大于30天');
} }
$where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) ); $where_["f.create_time"] = array( 'between', array( $start_time, $end_time ) );
} }
......
...@@ -157,7 +157,6 @@ class OrderLog extends Basic ...@@ -157,7 +157,6 @@ class OrderLog extends Basic
$messageUntil = new MessageUntils(); $messageUntil = new MessageUntils();
$user_phone = $report->getFieldValue('user_phone', ['id'=>$report_id]); $user_phone = $report->getFieldValue('user_phone', ['id'=>$report_id]);
$data = [$agent_name]; $data = [$agent_name];
$result = $messageUntil->sendSMSForUser($user_phone,$data,'415209'); $result = $messageUntil->sendSMSForUser($user_phone,$data,'415209');
if ($result == 'true') { if ($result == 'true') {
......
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