request->isAjax()){ $post = $this->request->post(); $res = StatisticsLogic::visit($post); return JsonServer::success('',$res); } return view(); } //交易分析 public function trading() { if($this->request->isAjax()){ $post = $this->request->post(); $res = StatisticsLogic::trading($post); return JsonServer::success('',$res); } return view(); } //会员分析 public function member() { if($this->request->isAjax()){ $post = $this->request->post(); $res = StatisticsLogic::member($post); return JsonServer::success('',$res); } return view(); } //商家分析 public function shop() { if($this->request->isAjax()){ $get= $this->request->get(); $res = StatisticsLogic::shop($get); return JsonServer::success('',$res); } return view(); } //商品分析 public function goods() { if($this->request->isAjax()){ $get= $this->request->get(); $res = StatisticsLogic::goods($get); return JsonServer::success('',$res); } return view(); } }