|
|
|
@ -12,11 +12,12 @@ class MemberController extends ThinkController
|
|
|
|
|
/**
|
|
|
|
|
*玩家列表信息
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public function user_info($p=0){
|
|
|
|
|
//设定默认时间
|
|
|
|
|
if(!array_key_exists("time_start",$_REQUEST) && I('type') != 2){
|
|
|
|
|
$this->redirect(ACTION_NAME, array('time_start' => date('Y-m-d',strtotime('-30 day')),"time_end"=>date('Y-m-d')));
|
|
|
|
|
}
|
|
|
|
|
// if(!array_key_exists("time_start",$_REQUEST) && I('type') != 2){
|
|
|
|
|
// $this->redirect(ACTION_NAME, array('time_start' => date('Y-m-d',strtotime('-30 day')),"time_end"=>date('Y-m-d')));
|
|
|
|
|
// }
|
|
|
|
|
//基础信息
|
|
|
|
|
$page = intval($p);
|
|
|
|
|
$page = $page ? $page : 1; //默认显示第一页数据
|
|
|
|
@ -53,7 +54,13 @@ class MemberController extends ThinkController
|
|
|
|
|
$map['tab_user.id'] = $_REQUEST['user_id'];
|
|
|
|
|
}
|
|
|
|
|
if (isset($_REQUEST['account'])) {
|
|
|
|
|
//列表无权限要精准搜索
|
|
|
|
|
if($this->checkListOrCountAuth("list")){
|
|
|
|
|
$map['tab_user.account'] = ['like',I('account') . "%"];
|
|
|
|
|
}else{
|
|
|
|
|
$map['tab_user.account'] =I('account');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (isset($_REQUEST['time_start']) && isset($_REQUEST['time_end'])) {
|
|
|
|
|
$map['tab_user.register_time'] = ['between', [strtotime(I('time_start')), strtotime(I('time_end')) + 86399]];
|
|
|
|
@ -135,6 +142,13 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断列表权限
|
|
|
|
|
$listauth = $this->checkListOrCountAuth("count");
|
|
|
|
|
$listauth = $this->checkListOrCountAuth("list",["user_id","account","device_number"]);
|
|
|
|
|
if(!$listauth){
|
|
|
|
|
//没权限
|
|
|
|
|
$map['tab_user.id'] = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//计算用户列表
|
|
|
|
|
$data = M("user","tab_")
|
|
|
|
@ -304,8 +318,6 @@ class MemberController extends ThinkController
|
|
|
|
|
$history_count = $history_count->find()['recharge_total'];
|
|
|
|
|
$this->assign('history_count', $history_count?:0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('user_count',$user_count);
|
|
|
|
|
$this->assign('now_count', $now_count?:0);
|
|
|
|
|
|
|
|
|
|