作者 lyh

hx

@@ -36,6 +36,7 @@ class SyncVideo extends Command @@ -36,6 +36,7 @@ class SyncVideo extends Command
36 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; 36 $cmd = 'curl -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 if(200 != (int)$code){ 40 if(200 != (int)$code){
40 echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL; 41 echo date('Y-m-d H:i:s') . ' | ' . $code . PHP_EOL;
41 $errorFileModel = new ErrorFile(); 42 $errorFileModel = new ErrorFile();