From 2f3bec19757dc9b5900c8e893daa2225feafd6f5 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Sun, 29 Sep 2019 13:22:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/StatController.class.php | 14 +++++++------- Application/Admin/Model/UserModel.class.php | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Application/Admin/Controller/StatController.class.php b/Application/Admin/Controller/StatController.class.php index fb2d95f0d..856e8c242 100644 --- a/Application/Admin/Controller/StatController.class.php +++ b/Application/Admin/Controller/StatController.class.php @@ -34,18 +34,17 @@ class StatController extends ThinkController } else { $promoteaccount = '全部'; } - $list = D('user')->user($promote_id,$game_id); - + $count = count($list); $data = array_slice($list,($page-1)*$row,$row,true); - - + + file_put_contents(dirname(__FILE__).'/access_data_user.txt',json_encode($list)); - - - + + + $page = set_pagination($count,$row); if($page) {$this->assign('_page', $page);} @@ -1280,6 +1279,7 @@ class StatController extends ThinkController ->find(); $data[$key]['sum']=$sdata['sum']; } + $data_order_type = ''; if($_REQUEST['data_order']==2){ $data_order_type='sum'; $data_order=3;//倒序 diff --git a/Application/Admin/Model/UserModel.class.php b/Application/Admin/Model/UserModel.class.php index 27b11617a..bf6dd2fe9 100644 --- a/Application/Admin/Model/UserModel.class.php +++ b/Application/Admin/Model/UserModel.class.php @@ -1243,7 +1243,7 @@ class UserModel extends Model{ $analysis = $redis->mget($keys); //组合数组为键值对 $analysis = array_combine($keys,$analysis); - $data = ''; + $data = []; if(!empty($_GET['start']) && !empty($_GET['end'])) { $start = strtotime($_GET['start']);