角色查询导出修改

master
zhengyongxing 5 years ago
parent 7779535fb6
commit e8c3f021b6

@ -111,6 +111,14 @@ class ExportController extends Controller
}
}
if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) {
$map['create_time'] = ['between', [strtotime(I('time_start')), strtotime(I('time_end')) + 86399]];
} elseif (isset($_REQUEST['time_start'])) {
$map['create_time'] = ['GT', strtotime(I('time_start'))];
} elseif (isset($_REQUEST['time_end'])) {
$map['create_time'] = ['LT', strtotime(I('time_end')) + 86399];
}
$csvFileName = $xlsName.'.csv';
//设置好告诉浏览器要下载excel文件的headers
header('Content-Description: File Transfer');

@ -167,6 +167,8 @@
'promote_id'=>I('promote_id'),
'game_type'=>I('game_type'),
'xlsname'=>'玩家_角色查询',
'time_start'=>I('time_start'),
'time_end'=>I('time_end'),
))}">导出</a>
{$_page}
</div>

Loading…
Cancel
Save