sr_getcurtime(time()-86400, 'Y年-m月-d日'), 'yesterday_register'=> UserLogic::getCountByTime($yesterdayDate), 'yesterday_recharge'=> PaymentLogic::getTotal([4,5], $yesterdayDate), 'yesterday_withdraw'=> WithdrawLogic::getTotal($yesterdayDate), // 今日数据 'today'=>sr_getcurtime(time(), 'Y年-m月-d日'), 'today_register'=> UserLogic::getCountByTime($day), 'today_recharge'=> PaymentLogic::getTotal([4,5], $day), 'today_withdraw'=> WithdrawLogic::getTotal($day), ]; $this->assign('res', $res); return $this->fetch(); } }