|
|
|
@ -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; //默认显示第一页数据
|
|
|
|
@ -98,15 +99,6 @@ class MemberController extends ThinkController
|
|
|
|
|
$map['tab_user.device_number'] = $_REQUEST['device_number'];
|
|
|
|
|
}
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
|
|
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
|
//// var_dump($promoteRoot);die();
|
|
|
|
|
//
|
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
// $map['tab_user.promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
// $map['tab_user.id'] = array('lt',1);
|
|
|
|
|
// }
|
|
|
|
|
setPowerPromoteIds($map,'tab_user.promote_id');
|
|
|
|
|
|
|
|
|
|
//1.3 与推广员相关
|
|
|
|
@ -135,6 +127,8 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//判断是否有列表和统计的权限
|
|
|
|
|
$this->checkListOrCountAuthRestMap($map,["tab_user.id","tab_user.account","tab_user.device_number"]);
|
|
|
|
|
|
|
|
|
|
//计算用户列表
|
|
|
|
|
$data = M("user","tab_")
|
|
|
|
@ -304,8 +298,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);
|
|
|
|
|
|
|
|
|
@ -1175,6 +1167,9 @@ class MemberController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
// $map['type'] = 1;
|
|
|
|
|
// $map['login_time'] = ['exp', 'login_time<>0'];
|
|
|
|
|
//判断是否有列表和统计的权限
|
|
|
|
|
$this->checkListOrCountAuthRestMap($map,["user_account"]);
|
|
|
|
|
|
|
|
|
|
$extend = array();
|
|
|
|
|
$extend['map'] = $map;
|
|
|
|
|
$count = M('UserLoginRecord','tab_')
|
|
|
|
|