if(isset($_POST['start_time']) && $_POST['start_time']>0){
$_POST['start_time'] = strtotime($_POST['start_time']);
if(isset($_POST['end_time']) && $_POST['end_time']>0){
$_POST['end_time'] = strtotime($_POST['end_time']);
}else{
$_POST['end_time'] = 0;
}
if($_POST['end_time'] == $_POST['start_time']){
$_POST['end_time'] = $_POST['start_time']+86400;
}else if($_POST['end_time'] < $_POST['start_time']){
$this->ExportLayui(1,'结束时间小于起始时间');
}
}else{
if(isset($_POST['end_time']) && $_POST['end_time']>0){
$_POST['end_time'] = strtotime($_POST['end_time']);
$_POST['start_time'] = 1;
}
}