作者 lyh

gx

@@ -76,7 +76,7 @@ class ProductFileUpload extends Command @@ -76,7 +76,7 @@ class ProductFileUpload extends Command
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 echo date('Y-m-d H:i:s') . '编辑的path为:'. $file_path. PHP_EOL;
78 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); 78 $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
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); 79 + $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUploads.php';
  80 + return shell_exec($cmd);
81 } 81 }
82 } 82 }