|
...
|
...
|
@@ -143,7 +143,7 @@ class FileController |
|
|
|
*/
|
|
|
|
public function synchronizationFile($file_type,$fileName){
|
|
|
|
//同步到大文件
|
|
|
|
$file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0);
|
|
|
|
$file_path = config('filesystems.disks.cos')['cdn1'].$this->path.'/'.$fileName;
|
|
|
|
$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);
|
|
|
|
}
|
...
|
...
|
|