作者 lyh

变更数据

@@ -47,7 +47,7 @@ class SyncImageFileJob implements ShouldQueue @@ -47,7 +47,7 @@ class SyncImageFileJob implements ShouldQueue
47 //同步到大文件 47 //同步到大文件
48 $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; 48 $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
49 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); 49 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
50 - $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; 50 + $cmd = 'curl -k -F "file_path='.$directoryPath.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php';
51 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; 51 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
52 return shell_exec($cmd); 52 return shell_exec($cmd);
53 } 53 }