request->isAjax()){ $post = $this->request->post(); $res = StatisticsLogic::trading($post,$this->shop_id); return JsonServer::success('',$res); } return view(); } //访问分析 public function visit() { if($this->request->isAjax()){ $post = $this->request->post(); $res = StatisticsLogic::visit($post,$this->shop_id); return JsonServer::success('',$res); } return view(); } //商品分析 public function goods() { if($this->request->isAjax()){ $get= $this->request->get(); $res = StatisticsLogic::goods($get,$this->shop_id); return JsonServer::success('',$res); } return view(); } }