|
...
|
...
|
@@ -134,7 +134,7 @@ class FileController |
|
|
|
$amazonS3Service->uploadFiles($files,$this->path,$fileName);
|
|
|
|
}
|
|
|
|
$this->saveMysql($fileModel,$files->getSize(),$files->getClientOriginalExtension(),$fileName,$hash,$this->upload_location,$files->getMimeType(),$name);
|
|
|
|
$this->synchronizationFile($fileName,($this->upload_location == 0) ? 1 : 0);
|
|
|
|
$this->synchronizationFile($fileName,$this->upload_location);
|
|
|
|
$this->response('资源',Code::SUCCESS,$this->responseData($this->path.'/'.$fileName, $name));
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -303,7 +303,7 @@ class FileController |
|
|
|
$mime = $file->getMimeType();
|
|
|
|
$this->saveMysql($fileModel,$size,$file_type,$fileName,$hash,$this->upload_location,$mime,$name);
|
|
|
|
$data[] = $this->responseData($this->path.'/'.$fileName, $name);
|
|
|
|
$this->synchronizationFile($fileName,($this->upload_location == 0) ? 1 : 0);
|
|
|
|
$this->synchronizationFile($fileName,$this->upload_location);
|
|
|
|
}
|
|
|
|
$this->response('资源',Code::SUCCESS,$data);
|
|
|
|
}
|
...
|
...
|
|