正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论