隐藏需求

master
sunke 5 years ago
parent efd32351db
commit 0a7096623b

@ -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);

@ -20,11 +20,6 @@ class QueryController extends BaseController
0 => '平台币', 0 => '平台币',
1 => '支付宝', 1 => '支付宝',
2 => '微信', 2 => '微信',
5 => '聚宝云',
6 => '竣付通',
7 => '苹果支付',
8 => '金猪支付',
9 => '双乾支付',
]; ];
public function recharge($p = 0) public function recharge($p = 0)
@ -258,6 +253,10 @@ class QueryController extends BaseController
$list['new_login_time'] = date('Y-m-d H:i:s', $newLoginData['login_time']); $list['new_login_time'] = date('Y-m-d H:i:s', $newLoginData['login_time']);
$list['new_login_ip'] = $newLoginData['login_ip']; $list['new_login_ip'] = $newLoginData['login_ip'];
$list['account'] = substr($list['account'], 0, 2) . '******' . substr($list['account'], 8); $list['account'] = substr($list['account'], 0, 2) . '******' . substr($list['account'], 8);
if(!empty($list['device_number'])) {
$list['device_number'] = encryption($list['device_number']);
}
} }
} }

Loading…
Cancel
Save