正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -129,8 +129,8 @@ class FileController | @@ -129,8 +129,8 @@ class FileController | ||
| 129 | $amazonS3Service = new AmazonS3Service(); | 129 | $amazonS3Service = new AmazonS3Service(); |
| 130 | $amazonS3Service->uploadFiles($files,$this->path,$fileName); | 130 | $amazonS3Service->uploadFiles($files,$this->path,$fileName); |
| 131 | } | 131 | } |
| 132 | - $this->synchronizationFile($files->getClientOriginalExtension(),$fileName); | ||
| 133 | $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); | ||
| 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,6 +266,7 @@ class FileController | @@ -266,6 +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 | } | 270 | } |
| 270 | $this->response('资源',Code::SUCCESS,$data); | 271 | $this->response('资源',Code::SUCCESS,$data); |
| 271 | } | 272 | } |
-
请 注册 或 登录 后发表评论