|
|
@ -34,18 +34,17 @@ class StatController extends ThinkController
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$promoteaccount = '全部';
|
|
|
|
$promoteaccount = '全部';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$list = D('user')->user($promote_id,$game_id);
|
|
|
|
$list = D('user')->user($promote_id,$game_id);
|
|
|
|
|
|
|
|
|
|
|
|
$count = count($list);
|
|
|
|
$count = count($list);
|
|
|
|
|
|
|
|
|
|
|
|
$data = array_slice($list,($page-1)*$row,$row,true);
|
|
|
|
$data = array_slice($list,($page-1)*$row,$row,true);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file_put_contents(dirname(__FILE__).'/access_data_user.txt',json_encode($list));
|
|
|
|
file_put_contents(dirname(__FILE__).'/access_data_user.txt',json_encode($list));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$page = set_pagination($count,$row);
|
|
|
|
$page = set_pagination($count,$row);
|
|
|
|
if($page) {$this->assign('_page', $page);}
|
|
|
|
if($page) {$this->assign('_page', $page);}
|
|
|
|
|
|
|
|
|
|
|
@ -1280,6 +1279,7 @@ class StatController extends ThinkController
|
|
|
|
->find();
|
|
|
|
->find();
|
|
|
|
$data[$key]['sum']=$sdata['sum'];
|
|
|
|
$data[$key]['sum']=$sdata['sum'];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data_order_type = '';
|
|
|
|
if($_REQUEST['data_order']==2){
|
|
|
|
if($_REQUEST['data_order']==2){
|
|
|
|
$data_order_type='sum';
|
|
|
|
$data_order_type='sum';
|
|
|
|
$data_order=3;//倒序
|
|
|
|
$data_order=3;//倒序
|
|
|
|