作者 王智

baoxiu22

... ... @@ -109,6 +109,10 @@ class Dashboard extends Backend
//自定义导出
public function exportDayInner(){
//月 起止时间戳
$start_time = mktime(0, 0, 0, date('m'), 1, date('Y'));
$end_time = mktime(23, 59, 59, date('m'), date('t'), date('Y'));
$map['createtime'] = ['between', [$start_time, $end_time]];
$ZhanDianArr = Db::name('zhandian')->select();
foreach ($ZhanDianArr as $k => $v) {
$data[$k]['id'] = $v['id'];
... ...