|
|
@ -1767,12 +1767,12 @@ class DownloadController extends BaseController {
|
|
|
|
$model = M('user','tab_');
|
|
|
|
$model = M('user','tab_');
|
|
|
|
|
|
|
|
|
|
|
|
$data = $model->field('account,device_number,promote_account,register_time,register_ip,login_time,login_ip')->where($map)->order('tab_user.id desc')->select();
|
|
|
|
$data = $model->field('account,device_number,promote_account,register_time,register_ip,login_time,login_ip')->where($map)->order('tab_user.id desc')->select();
|
|
|
|
//var_dump($data);
|
|
|
|
|
|
|
|
$xlsData = [];
|
|
|
|
$xlsData = [];
|
|
|
|
foreach ($data as $key1 => $value1) {
|
|
|
|
foreach ($data as $key1 => $value1) {
|
|
|
|
$value1['register_time'] = date("Y-m-d H:i:s",$value1['register_time']);
|
|
|
|
$value1['register_time'] = date("Y-m-d H:i:s",$value1['register_time']);
|
|
|
|
$value1['login_time'] = date("Y-m-d H:i:s",$value1['login_time']);
|
|
|
|
$value1['login_time'] = date("Y-m-d H:i:s",$value1['login_time']);
|
|
|
|
$value1['account'] = $this->encryption($value1['account']);
|
|
|
|
$value1['account'] = $this->encryption($value1['account']);
|
|
|
|
|
|
|
|
$value1['device_number'] = $this->encryption($value1['device_number']);
|
|
|
|
$xlsData[] = $value1;
|
|
|
|
$xlsData[] = $value1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->exportExcel($xlsName, $xlsCell, $xlsData,$id);
|
|
|
|
$this->exportExcel($xlsName, $xlsCell, $xlsData,$id);
|
|
|
|