request->isAjax()){ $get = $this->request->get(); $list = RechargeLogLogic::lists($get); $this->_success('', $list); } $today = array_map(function ($time) { return date('Y-m-d H:i:s', $time); }, Time::today()); $this->assign('today', $today); $yesterday = array_map(function ($time) { return date('Y-m-d H:i:s', $time); }, Time::yesterday()); $this->assign('yesterday', $yesterday); $days_ago7 = array_map(function ($time) { return date('Y-m-d H:i:s', $time); }, Time::dayToNow(7)); $this->assign('days_ago7', $days_ago7); $days_ago30 = array_map(function ($time) { return date('Y-m-d H:i:s', $time); }, Time::dayToNow(30, true)); $this->assign('days_ago30', $days_ago30); return $this->fetch(); } }