request->isAjax()) { $get = $this->request->get(); $result = BillionsLogic::lists($get); return JsonServer::success('', $result); } $summary = BillionsLogic::summary(); return view('',array( 'summary'=>$summary ) ); } /** * @notes 用户反补需求列表 * @return \think\response\Json|\think\response\View * @author Yzt * @date 2024/10/29 10:07 上午 */ public function userLists(){ $get = $this->request->get(); if ($this->request->isAjax()) { $result = BillionsLogic::userList($get); return JsonServer::success('', $result); } $summary = BillionsLogic::summary(); $today = [ date('Y-m-d H:i:s', strtotime(date("Y-m-d", time()))), date('Y-m-d H:i:s', strtotime(date("Y-m-d", time())) + 86399) ]; $yesterday = [ date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-1 day")))), date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-1 day"))) + 86399) ]; $days_ago7 = [ date('Y-m-d H:i:s', strtotime(date("Y-m-d", strtotime("-7 day")))), date('Y-m-d 23:59:59', time()) ]; $days_ago30 = [ date('Y-m-d 00:00:00', strtotime("-30 day")), date('Y-m-d 23:59:59', time()) ]; return view('',array( 'user_id' => $get['user_id'], 'summary'=>$summary, 'today' => $today, 'yesterday' => $yesterday, 'days_ago7' => $days_ago7, 'days_ago30' => $days_ago30, ) ); } }