Commit fcbea741 authored by zhuwei's avatar zhuwei

搜索时间不能大于30天

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