管理后台-》平台统计-》游戏注册统计列表数据权限与导出权限

管理后台-》平台统计-》游戏充值统计列表数据权限与导出权限
管理后台-》平台统计-》注册方式统计列表数据权限与导出权限
管理后台-》平台统计-》充值方式统计列表数据权限与导出权限
master
liuweiwen 5 years ago
parent 5257528b87
commit 47f53a4941

@ -2144,6 +2144,8 @@ class ExportController extends Controller
$today=total(1);
$week=total(2);
$mounth=total(3);
//为数据权限添加
setPowerPromoteIds($map);
$data=$user
->field('fgame_name,fgame_id,date_format(FROM_UNIXTIME( register_time),"%Y-%m-%d") AS time, count(id) as count,
count(IF(register_time '.$today.',1,null)) as today,
@ -2222,6 +2224,8 @@ class ExportController extends Controller
$today=total(1);
$week=total(2);
$mounth=total(3);
//为数据权限添加
setPowerPromoteIds($map);
$data=$spend
->field('game_name,game_id,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count,
sum(IF(pay_time '.$today.',pay_amount,0)) as today,
@ -2298,6 +2302,8 @@ class ExportController extends Controller
$today=total(1);
$week=total(2);
$mounth=total(3);
//为数据权限添加
setPowerPromoteIds($map);
$data=$user
->field('register_way,date_format(FROM_UNIXTIME(register_time),"%Y-%m-%d") AS time, count(id) as count,
count(IF(register_time '.$today.',1,null)) as today,
@ -2370,6 +2376,8 @@ class ExportController extends Controller
$today=total(1);
$week=total(2);
$mounth=total(3);
//为数据权限添加
setPowerPromoteIds($map);
$data=$spend
->field('pay_way,date_format(FROM_UNIXTIME(pay_time),"%Y-%m-%d") AS time, sum(pay_amount) as count,
sum(IF(pay_time '.$today.',pay_amount,0)) as today,

@ -44,11 +44,8 @@ class PlatformController extends ThinkController
$map['fgame_name'] = $_REQUEST['game_name'];
unset($_REQUEST['fgame_name']);
}
$promoteRoot = getPowerPromoteIds();
if ($promoteRoot) {
$map['promote_id'] =array('in',$promoteRoot);
}
//为数据权限添加
setPowerPromoteIds($map);
$today = total(1);
$week = total(2);
@ -126,10 +123,8 @@ class PlatformController extends ThinkController
unset($_REQUEST['timeend']);
}
$promoteRoot = getPowerPromoteIds();
if ($promoteRoot) {
$map['promote_id'] =array('in',$promoteRoot);
}
//为数据权限添加
setPowerPromoteIds($map);
// var_dump($_REQUEST);exit;
if (isset($_REQUEST['game_name']) && $_REQUEST['game_name'] != '') {

Loading…
Cancel
Save