作者 lyh

gx

@@ -74,8 +74,9 @@ class ProductFileUpload extends Command @@ -74,8 +74,9 @@ class ProductFileUpload extends Command
74 public function synchronizationFile($path_name,$newName){ 74 public function synchronizationFile($path_name,$newName){
75 //同步到大文件 75 //同步到大文件
76 $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; 76 $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
  77 + echo date('Y-m-d H:i:s') . '编辑的path为:'. $file_path. PHP_EOL;
77 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); 78 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
78 - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUpload.php';  
79 - return shell_exec($cmd); 79 +// $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUpload.php';
  80 +// return shell_exec($cmd);
80 } 81 }
81 } 82 }