|
|
@ -90,10 +90,15 @@ class ExportController extends Controller
|
|
|
|
unset($_REQUEST['role_name']);
|
|
|
|
unset($_REQUEST['role_name']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['promote_id'])) {
|
|
|
|
if (isset($_REQUEST['promote_id'])) {
|
|
|
|
$queryStr = '';
|
|
|
|
$queryStr = '';
|
|
|
@ -402,10 +407,20 @@ class ExportController extends Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$hav = '';
|
|
|
|
$hav = '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['tab_user.promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['tab_user.promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// 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');
|
|
|
|
|
|
|
|
|
|
|
|
if ($_REQUEST['promote_id'] != '') {
|
|
|
|
if ($_REQUEST['promote_id'] != '') {
|
|
|
|
if($_REQUEST['promote_id']=='UC'){
|
|
|
|
if($_REQUEST['promote_id']=='UC'){
|
|
|
@ -1070,10 +1085,15 @@ class ExportController extends Controller
|
|
|
|
unset($_REQUEST['pay_game_status']);
|
|
|
|
unset($_REQUEST['pay_game_status']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['promote_id'])) {
|
|
|
|
if(isset($_REQUEST['promote_id'])) {
|
|
|
|
if ($_REQUEST['promote_id'] == 0) {
|
|
|
|
if ($_REQUEST['promote_id'] == 0) {
|
|
|
@ -1180,10 +1200,15 @@ class ExportController extends Controller
|
|
|
|
unset($_REQUEST['pay_ip']);
|
|
|
|
unset($_REQUEST['pay_ip']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if (!isset($_REQUEST['promote_id'])) {
|
|
|
|
if (!isset($_REQUEST['promote_id'])) {
|
|
|
|
|
|
|
|
|
|
|
@ -1884,8 +1909,12 @@ class ExportController extends Controller
|
|
|
|
$map['create_time'] = array('BETWEEN', [$startTime, $endTime]);
|
|
|
|
$map['create_time'] = array('BETWEEN', [$startTime, $endTime]);
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
|
|
|
|
$data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
|
|
|
|
|
|
|
|
if ($promoteRoot) {
|
|
|
|
if ($promoteRoot) {
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
} else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
$map['id'] = array('lt',1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($promoteId = I('promote_id')) {
|
|
|
|
if ($promoteId = I('promote_id')) {
|
|
|
@ -2921,10 +2950,20 @@ class ExportController extends Controller
|
|
|
|
empty(I("account")) || $map['user_account'] = ["like","%".I("account")."%"];
|
|
|
|
empty(I("account")) || $map['user_account'] = ["like","%".I("account")."%"];
|
|
|
|
empty(I("time_start")) || $map['create_time'] = ["between",[strtotime(I("time_start")),empty(I("time_end"))?time():strtotime(I("time_end"))+86400-1]];
|
|
|
|
empty(I("time_start")) || $map['create_time'] = ["between",[strtotime(I("time_start")),empty(I("time_end"))?time():strtotime(I("time_end"))+86400-1]];
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
$data = $model->getLists($map,"create_time desc",$p);
|
|
|
|
$data = $model->getLists($map,"create_time desc",$p);
|
|
|
|
|
|
|
|
|
|
|
@ -3853,10 +3892,15 @@ if ($key == 'model'){
|
|
|
|
$map['user_account'] = array('like', '%' . trim($_REQUEST['account']) . '%');
|
|
|
|
$map['user_account'] = array('like', '%' . trim($_REQUEST['account']) . '%');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_REQUEST['promote_id'])) {
|
|
|
|
if (isset($_REQUEST['promote_id'])) {
|
|
|
|
$map['promote_id'] = $_REQUEST['promote_id'];
|
|
|
|
$map['promote_id'] = $_REQUEST['promote_id'];
|
|
|
@ -4213,10 +4257,15 @@ if ($key == 'model'){
|
|
|
|
array('op_account','发放人员'),
|
|
|
|
array('op_account','发放人员'),
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($extend,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if(empty($_REQUEST['promote_id']&&$_REQUEST['promote_type'])){
|
|
|
|
if(empty($_REQUEST['promote_id']&&$_REQUEST['promote_type'])){
|
|
|
|
$map['type'] = 1;
|
|
|
|
$map['type'] = 1;
|
|
|
@ -4288,10 +4337,16 @@ if ($key == 'model'){
|
|
|
|
$map['source_id'] = 0;
|
|
|
|
$map['source_id'] = 0;
|
|
|
|
$extend['op_id'] = session('user_auth')['uid'];
|
|
|
|
$extend['op_id'] = session('user_auth')['uid'];
|
|
|
|
|
|
|
|
|
|
|
|
$promoteRoot = getPowerPromoteIds();
|
|
|
|
// $promoteRoot = getPowerPromoteIds();
|
|
|
|
if ($promoteRoot) {
|
|
|
|
// $data_empower_type = session('user_auth')['data_empower_type'];
|
|
|
|
$map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
//
|
|
|
|
}
|
|
|
|
// if ($promoteRoot) {
|
|
|
|
|
|
|
|
// $map['promote_id'] =array('in',$promoteRoot);
|
|
|
|
|
|
|
|
// } else if(!$promoteRoot&&$data_empower_type!=1){
|
|
|
|
|
|
|
|
// $map['id'] = array('lt',1);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
setPowerPromoteIds($map,'promote_id');
|
|
|
|
|
|
|
|
|
|
|
|
if(isset($_REQUEST['promote_id'])) {
|
|
|
|
if(isset($_REQUEST['promote_id'])) {
|
|
|
|
$map['promote_id'] = $_REQUEST['promote_id'];
|
|
|
|
$map['promote_id'] = $_REQUEST['promote_id'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|