修改bug

master
ELF 5 years ago
parent 15dc9998c0
commit 2f3bec1975

@ -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;//倒序

@ -1243,7 +1243,7 @@ class UserModel extends Model{
$analysis = $redis->mget($keys); $analysis = $redis->mget($keys);
//组合数组为键值对 //组合数组为键值对
$analysis = array_combine($keys,$analysis); $analysis = array_combine($keys,$analysis);
$data = ''; $data = [];
if(!empty($_GET['start']) && !empty($_GET['end'])) { if(!empty($_GET['start']) && !empty($_GET['end'])) {
$start = strtotime($_GET['start']); $start = strtotime($_GET['start']);

Loading…
Cancel
Save