request->post('cid'); $result = FileServer::image($cid, $this->shop_id); return JsonServer::success("上传成功", $result); } catch (Exception $e) { return JsonServer::error($e->getMessage()); } } /** * 上传视频 */ public function video() { try { $cid = $this->request->post('cid'); $result = FileServer::video($cid, $this->shop_id); return JsonServer::success("上传成功", $result); } catch (Exception $e) { return JsonServer::error($e->getMessage()); } } }