正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -47,7 +47,7 @@ class SyncImageFileJob implements ShouldQueue | @@ -47,7 +47,7 @@ class SyncImageFileJob implements ShouldQueue | ||
| 47 | //同步到大文件 | 47 | //同步到大文件 |
| 48 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 48 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 49 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 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'; | 50 | + $cmd = 'curl -k -F "file_path='.$directoryPath.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" 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 | } |
-
请 注册 或 登录 后发表评论