正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -35,7 +35,7 @@ class SyncImageFileJob implements ShouldQueue | @@ -35,7 +35,7 @@ class SyncImageFileJob implements ShouldQueue | ||
| 35 | public function handle() | 35 | public function handle() |
| 36 | { | 36 | { |
| 37 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']); | 37 | $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']); |
| 38 | - $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | 38 | + $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; |
| 39 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | 39 | echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; |
| 40 | $code = shell_exec($cmd); | 40 | $code = shell_exec($cmd); |
| 41 | if(200 != (int)$code){ | 41 | if(200 != (int)$code){ |
-
请 注册 或 登录 后发表评论