作者 lyh

gx

@@ -143,7 +143,7 @@ class FileController @@ -143,7 +143,7 @@ class FileController
143 */ 143 */
144 public function synchronizationFile($file_type,$fileName){ 144 public function synchronizationFile($file_type,$fileName){
145 //同步到大文件 145 //同步到大文件
146 - $file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0); 146 + $file_path = config('filesystems.disks.cos')['cdn1'].$this->path.'/'.$fileName;
147 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php'; 147 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php';
148 shell_exec($cmd); 148 shell_exec($cmd);
149 } 149 }