添加初始化搜索时间空判断
This commit is contained in:
parent
9bd04ab275
commit
0cc7583cb7
@ -99,10 +99,13 @@ abstract class BaseDataLists implements ListsInterface
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
$startTime = $this->request->get('start_time');
|
$startTime = $this->request->get('start_time');
|
||||||
$this->startTime = strtotime($startTime);
|
if($startTime){
|
||||||
|
$this->startTime = strtotime($startTime);
|
||||||
|
}
|
||||||
$endTime = $this->request->get('end_time');
|
$endTime = $this->request->get('end_time');
|
||||||
$this->endTime = strtotime($endTime);
|
if($endTime){
|
||||||
|
$this->endTime = $startTime??strtotime($endTime);
|
||||||
|
}
|
||||||
$this->start = $this->request->get('start');
|
$this->start = $this->request->get('start');
|
||||||
$this->end = $this->request->get('end');
|
$this->end = $this->request->get('end');
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user