request->isAjax()) { $get = $this->request->get(); $lists = LiveGoodsLogic::lists($get); return JsonServer::success('', $lists); } return view('', [ 'shop' => LiveRoomLogic::shopLists() ]); } public function add() { return view(''); } public function edit() { } /** * 上传视频到OSS */ public function uploadVideo() { $result = MallNewsLogic::uploadVideo(); if ($result['code'] == 1) { return JsonServer::success('', $result['data']); } return JsonServer::error('', $result['msg']); } }