|
...
|
...
|
@@ -142,15 +142,11 @@ class FileController |
|
|
|
* @time :2024/4/8 11:10
|
|
|
|
*/
|
|
|
|
public function synchronizationFile($file_type,$fileName){
|
|
|
|
$fileTypeArr = ['zip', 'pdf', 'mp4', 'doc', 'docx', 'm4v', 'xlsx'];
|
|
|
|
if(in_array($file_type,$fileTypeArr)){
|
|
|
|
//同步到大文件
|
|
|
|
$file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0);
|
|
|
|
$cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
shell_exec($cmd);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 接口上传单文件
|
...
|
...
|
|