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