cp房列表条件筛选
This commit is contained in:
@@ -1008,13 +1008,13 @@ class Room extends adminApi
|
|||||||
}
|
}
|
||||||
//检查 时间格式 转为时间戳
|
//检查 时间格式 转为时间戳
|
||||||
// 检查并转换时间格式为时间戳
|
// 检查并转换时间格式为时间戳
|
||||||
if(!empty($start_time)){
|
if($start_time !== ''){
|
||||||
$start_time = strtotime($start_time);
|
$start_time = strtotime($start_time);
|
||||||
$where['createtime'] = ['>=', $start_time];
|
$where['createtime'] = ['>=', $start_time];
|
||||||
}else{
|
}else{
|
||||||
$start_time = 0;
|
$start_time = 0;
|
||||||
}
|
}
|
||||||
if(!empty($end_time)){
|
if($end_time !== ''){
|
||||||
$end_time = strtotime($end_time);
|
$end_time = strtotime($end_time);
|
||||||
$where['createtime'] = ['<=', $end_time];
|
$where['createtime'] = ['<=', $end_time];
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user