|
|
@ -50,7 +50,7 @@ class IndexController extends AdminController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$tm =strtotime(date("Y-m-d",strtotime("-1 day")));
|
|
|
|
$tm =strtotime(date("Y-m-d",strtotime("-1 day")));
|
|
|
|
$allcount = M("IndexChart","tab_")->field("all_count")->where("`date` = '{$tm}'")->find();
|
|
|
|
$allcount = M("IndexChart","tab_")->field("all_count")->where("`date` = '{$tm}'")->find();
|
|
|
|
$allcount = unserialize($allcount['all_count']);
|
|
|
|
$allcount = json_decode($allcount['all_count'],true);
|
|
|
|
|
|
|
|
|
|
|
|
$this->assign('user_count',$allcount['user_count']);
|
|
|
|
$this->assign('user_count',$allcount['user_count']);
|
|
|
|
$this->assign('active_count', $allcount['active_count']);
|
|
|
|
$this->assign('active_count', $allcount['active_count']);
|
|
|
@ -224,10 +224,10 @@ class IndexController extends AdminController {
|
|
|
|
$data['hours'] = 1;
|
|
|
|
$data['hours'] = 1;
|
|
|
|
$tm = strtotime($start);
|
|
|
|
$tm = strtotime($start);
|
|
|
|
$dbdata = M("IndexChart","tab_")->field("new_user_count,new_user_hours,active_user_count,active_user_hours,pay_user_count,pay_user_hours,pay_money_count,pay_money_hours,promote_new_count")->where("`date` = '{$tm}'")->find();
|
|
|
|
$dbdata = M("IndexChart","tab_")->field("new_user_count,new_user_hours,active_user_count,active_user_hours,pay_user_count,pay_user_hours,pay_money_count,pay_money_hours,promote_new_count")->where("`date` = '{$tm}'")->find();
|
|
|
|
$data['news'] = unserialize($dbdata["new_user_hours"]);
|
|
|
|
$data['news'] = json_decode($dbdata["new_user_hours"],true);
|
|
|
|
$data['active'] = unserialize($dbdata["active_user_hours"]);
|
|
|
|
$data['active'] = json_decode($dbdata["active_user_hours"],true);
|
|
|
|
$data['player']=unserialize($dbdata["pay_user_hours"]);
|
|
|
|
$data['player']=json_decode($dbdata["pay_user_hours"],true);
|
|
|
|
$data['money']=unserialize($dbdata["pay_money_hours"]);
|
|
|
|
$data['money']=json_decode($dbdata["pay_money_hours"],true);
|
|
|
|
|
|
|
|
|
|
|
|
//获取昨天
|
|
|
|
//获取昨天
|
|
|
|
$ytm = $starttime-86400;
|
|
|
|
$ytm = $starttime-86400;
|
|
|
@ -268,10 +268,10 @@ class IndexController extends AdminController {
|
|
|
|
$data['active'][$k] = $v['active_user_count'];
|
|
|
|
$data['active'][$k] = $v['active_user_count'];
|
|
|
|
$data['player'][$k] = $v['pay_user_count'];
|
|
|
|
$data['player'][$k] = $v['pay_user_count'];
|
|
|
|
$data['money'][$k] = $v['pay_money_count'];
|
|
|
|
$data['money'][$k] = $v['pay_money_count'];
|
|
|
|
$active_user_list += unserialize($v['active_user_list']);
|
|
|
|
$active_user_list += json_decode($v['active_user_list'],true);
|
|
|
|
unset($v['active_user_list']);
|
|
|
|
unset($v['active_user_list']);
|
|
|
|
unset($dbdata[$k]['active_user_list']);
|
|
|
|
unset($dbdata[$k]['active_user_list']);
|
|
|
|
$pay_user_list += unserialize($v['pay_user_list']);
|
|
|
|
$pay_user_list += json_decode($v['pay_user_list'],true);
|
|
|
|
unset($v['pay_user_list']);
|
|
|
|
unset($v['pay_user_list']);
|
|
|
|
unset($dbdata[$k]['pay_user_list']);
|
|
|
|
unset($dbdata[$k]['pay_user_list']);
|
|
|
|
$count1['new_user_count'] += $v['new_user_count'];
|
|
|
|
$count1['new_user_count'] += $v['new_user_count'];
|
|
|
@ -318,10 +318,10 @@ class IndexController extends AdminController {
|
|
|
|
$pay_user_list = [];
|
|
|
|
$pay_user_list = [];
|
|
|
|
$count2 = array();
|
|
|
|
$count2 = array();
|
|
|
|
foreach($ydbdata as $k => $v) {
|
|
|
|
foreach($ydbdata as $k => $v) {
|
|
|
|
$active_user_list += unserialize($v['active_user_list']);
|
|
|
|
$active_user_list += json_decode($v['active_user_list'],true);
|
|
|
|
unset($v['active_user_list']);
|
|
|
|
unset($v['active_user_list']);
|
|
|
|
unset($ydbdata[$k]['active_user_list']);
|
|
|
|
unset($ydbdata[$k]['active_user_list']);
|
|
|
|
$pay_user_list += unserialize($v['pay_user_list']);
|
|
|
|
$pay_user_list += json_decode($v['pay_user_list'],true);
|
|
|
|
unset($v['pay_user_list']);
|
|
|
|
unset($v['pay_user_list']);
|
|
|
|
unset($ydbdata[$k]['pay_user_list']);
|
|
|
|
unset($ydbdata[$k]['pay_user_list']);
|
|
|
|
$count2['new_user_count'] += $v['new_user_count'];
|
|
|
|
$count2['new_user_count'] += $v['new_user_count'];
|
|
|
|