正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -130,7 +130,7 @@ class FileController | @@ -130,7 +130,7 @@ class FileController | ||
| 130 | $amazonS3Service->uploadFiles($files,$this->path,$fileName); | 130 | $amazonS3Service->uploadFiles($files,$this->path,$fileName); |
| 131 | } | 131 | } |
| 132 | $this->saveMysql($fileModel,$files->getSize(),$files->getClientOriginalExtension(),$fileName,$hash,$this->upload_location,$files->getMimeType(),$name); | 132 | $this->saveMysql($fileModel,$files->getSize(),$files->getClientOriginalExtension(),$fileName,$hash,$this->upload_location,$files->getMimeType(),$name); |
| 133 | - $this->synchronizationFile($files->getClientOriginalExtension(),$fileName); | 133 | +// $this->synchronizationFile($files->getClientOriginalExtension(),$fileName); |
| 134 | $this->response('资源',Code::SUCCESS,$this->responseData($this->path.'/'.$fileName, $name)); | 134 | $this->response('资源',Code::SUCCESS,$this->responseData($this->path.'/'.$fileName, $name)); |
| 135 | } | 135 | } |
| 136 | 136 | ||
| @@ -266,7 +266,7 @@ class FileController | @@ -266,7 +266,7 @@ class FileController | ||
| 266 | $mime = $file->getMimeType(); | 266 | $mime = $file->getMimeType(); |
| 267 | $this->saveMysql($fileModel,$size,$file_type,$fileName,$hash,$this->upload_location,$mime,$name); | 267 | $this->saveMysql($fileModel,$size,$file_type,$fileName,$hash,$this->upload_location,$mime,$name); |
| 268 | $data[] = $this->responseData($this->path.'/'.$fileName, $name); | 268 | $data[] = $this->responseData($this->path.'/'.$fileName, $name); |
| 269 | - $this->synchronizationFile($file_type,$fileName); | 269 | +// $this->synchronizationFile($file_type,$fileName); |
| 270 | } | 270 | } |
| 271 | $this->response('资源',Code::SUCCESS,$data); | 271 | $this->response('资源',Code::SUCCESS,$data); |
| 272 | } | 272 | } |
-
请 注册 或 登录 后发表评论