角色查询

master
sunke 5 years ago
parent 98fe853743
commit 36ff63bb33

@ -1485,7 +1485,7 @@ class DownloadController extends BaseController {
array_push($ids,PID);
}
array_push($ids,$queryPromote['id']);
//array_push($ids,$queryPromote['id']);
if (!empty($ids)) {
$map['promote_id'] = ['in',$ids];
@ -1530,7 +1530,7 @@ class DownloadController extends BaseController {
if (($playTimeEnd - $playTimeBegin) > 31 * 24 * 3600) {
$this->error('时间范围不能超过31天');
}
$map['play_time'] = ['between', [$playTimeBegin, $playTimeEnd]];
$map['create_time'] = ['between', [$playTimeBegin, $playTimeEnd]];
}
if ($isSelf) {
$map['promote_id'] = $queryPromote['id'];
@ -1788,12 +1788,14 @@ class DownloadController extends BaseController {
array('server_name','区服'),
array('role_name','游戏昵称'),
array('role_level','等级'),
array('create_time','创建时间'),
);
$model = M('user_play_info','tab_');
$data = $model->field('user_account,promote_account,game_name,server_name,role_name,role_level')->where($map)->select();
$xlsData = [];
foreach ($data as $key1 => $value1) {
$value1['user_account'] = $this->encryption($value1['user_account']);
$value1['create_time'] = date('Y-m-d H:i:s',$value1['create_time']);
$xlsData[] = $value1;
}
$this->exportExcel($xlsName, $xlsCell, $xlsData,$id);

Loading…
Cancel
Save