作者 lyh

gxdemo脚本

@@ -30,7 +30,7 @@ class SyncVideo extends Command @@ -30,7 +30,7 @@ class SyncVideo extends Command
30 public function handle() 30 public function handle()
31 { 31 {
32 $this->param['path'] = $this->argument('file'); 32 $this->param['path'] = $this->argument('file');
33 - $file_path = $this->getUrl($this->param['path'], 0,$this->param['location']); 33 + $file_path = $this->getUrl($this->param['path'], 0,0);
34 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; 34 $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php';
35 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; 35 echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
36 $code = shell_exec($cmd); 36 $code = shell_exec($cmd);