作者 李宇航

合并分支 'lyh-server' 到 'master'

Lyh server



查看合并请求 !3107
@@ -45,9 +45,9 @@ class SyncImageFileJob implements ShouldQueue @@ -45,9 +45,9 @@ class SyncImageFileJob implements ShouldQueue
45 45
46 public function synchronizationFile($path_name){ 46 public function synchronizationFile($path_name){
47 //同步到大文件 47 //同步到大文件
48 - $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;  
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'; 48 +// $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
  49 +// $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
  50 + $cmd = 'curl -k -F "file_path='.$path_name.'" -F "save_path=/www/wwwroot/cos'.$path_name.'" 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 }