作者 lyh

gx

@@ -40,6 +40,7 @@ class SyncImageFileJob implements ShouldQueue @@ -40,6 +40,7 @@ class SyncImageFileJob implements ShouldQueue
40 { 40 {
41 $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']); 41 $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,$this->param['location']);
42 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; 42 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php';
  43 + echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
43 $code = shell_exec($cmd); 44 $code = shell_exec($cmd);
44 if(200 != (int)$code){ 45 if(200 != (int)$code){
45 $errorFileModel = new ErrorFile(); 46 $errorFileModel = new ErrorFile();