合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !3107
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -45,9 +45,9 @@ class SyncImageFileJob implements ShouldQueue | @@ -45,9 +45,9 @@ class SyncImageFileJob implements ShouldQueue | ||
| 45 | 45 | ||
| 46 | public function synchronizationFile($path_name){ | 46 | public function synchronizationFile($path_name){ |
| 47 | //同步到大文件 | 47 | //同步到大文件 |
| 48 | - $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | ||
| 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'; | 48 | +// $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 49 | +// $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | ||
| 50 | + $cmd = 'curl -k -F "file_path='.$path_name.'" -F "save_path=/www/wwwroot/cos'.$path_name.'" 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 | } |
-
请 注册 或 登录 后发表评论