作者 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 $path = $this->argument('path'); 32 $path = $this->argument('path');
33 - $this->param['name'] = basename($this->param['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 -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';