正在显示
6 个修改的文件
包含
8 行增加
和
8 行删除
| @@ -60,7 +60,7 @@ class SyncFile extends Command | @@ -60,7 +60,7 @@ class SyncFile extends Command | ||
| 60 | //同步到大文件 | 60 | //同步到大文件 |
| 61 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 61 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 62 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 62 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 63 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 63 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 64 | return shell_exec($cmd); | 64 | return shell_exec($cmd); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| @@ -69,7 +69,7 @@ class SyncFile extends Command | @@ -69,7 +69,7 @@ class SyncFile extends Command | ||
| 69 | //同步到大文件 | 69 | //同步到大文件 |
| 70 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; | 70 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; |
| 71 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 71 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 72 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 72 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 73 | return shell_exec($cmd); | 73 | return shell_exec($cmd); |
| 74 | } | 74 | } |
| 75 | } | 75 | } |
| @@ -54,7 +54,7 @@ class SyncTimeMinuteFile extends Command | @@ -54,7 +54,7 @@ class SyncTimeMinuteFile extends Command | ||
| 54 | $this->param['name'] = basename($path); | 54 | $this->param['name'] = basename($path); |
| 55 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 55 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 56 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 56 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 57 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 57 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 58 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 58 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 59 | $code = shell_exec($cmd); | 59 | $code = shell_exec($cmd); |
| 60 | if(200 != (int)$code){ | 60 | if(200 != (int)$code){ |
| @@ -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 -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" -F "file_name='.$newName.'" https://v6-file.globalso.com/fileUploads.php'; | 79 | + $cmd = 'curl -k -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); | 80 | return shell_exec($cmd); |
| 81 | } | 81 | } |
| 82 | } | 82 | } |
| @@ -59,7 +59,7 @@ class SyncProjectFile extends Command | @@ -59,7 +59,7 @@ class SyncProjectFile extends Command | ||
| 59 | //同步到大文件 | 59 | //同步到大文件 |
| 60 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; | 60 | $file_path = config('filesystems.disks.cos')['cdn1'].$path_name; |
| 61 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 61 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 62 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 62 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 63 | return shell_exec($cmd); | 63 | return shell_exec($cmd); |
| 64 | } | 64 | } |
| 65 | 65 | ||
| @@ -68,7 +68,7 @@ class SyncProjectFile extends Command | @@ -68,7 +68,7 @@ class SyncProjectFile extends Command | ||
| 68 | //同步到大文件 | 68 | //同步到大文件 |
| 69 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; | 69 | $file_path = config('filesystems.disks.s3')['cdn'].$path_name; |
| 70 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); | 70 | $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME); |
| 71 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; | 71 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php'; |
| 72 | return shell_exec($cmd); | 72 | return shell_exec($cmd); |
| 73 | } | 73 | } |
| 74 | } | 74 | } |
| @@ -42,7 +42,7 @@ class SyncTimeFiles extends Command | @@ -42,7 +42,7 @@ class SyncTimeFiles extends Command | ||
| 42 | $this->param['name'] = basename($path); | 42 | $this->param['name'] = basename($path); |
| 43 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 43 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 44 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 44 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 45 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 45 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 46 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 46 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 47 | $code = shell_exec($cmd); | 47 | $code = shell_exec($cmd); |
| 48 | if(200 != (int)$code){ | 48 | if(200 != (int)$code){ |
| @@ -33,7 +33,7 @@ class SyncVideo extends Command | @@ -33,7 +33,7 @@ class SyncVideo extends Command | ||
| 33 | $this->param['name'] = basename($path); | 33 | $this->param['name'] = basename($path); |
| 34 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | 34 | $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); |
| 35 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | 35 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); |
| 36 | - $cmd = 'curl -K -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 36 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 37 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 37 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 38 | $code = shell_exec($cmd); | 38 | $code = shell_exec($cmd); |
| 39 | echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; | 39 | echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; |
-
请 注册 或 登录 后发表评论