正在显示
1 个修改的文件
包含
0 行增加
和
6 行删除
| @@ -51,12 +51,6 @@ class SyncTimeMinuteFile extends Command | @@ -51,12 +51,6 @@ class SyncTimeMinuteFile extends Command | ||
| 51 | echo date('Y-m-d H:i:s') . ' | file_ok:' . $dir.$path . PHP_EOL; | 51 | echo date('Y-m-d H:i:s') . ' | file_ok:' . $dir.$path . PHP_EOL; |
| 52 | continue; | 52 | continue; |
| 53 | } | 53 | } |
| 54 | -// $this->param['name'] = basename($path); | ||
| 55 | -// $this->param['path'] = str_replace('/'.$this->param['name'],'',$path); | ||
| 56 | -// $file_path = $this->getUrl($this->param['path'].'/'.$this->param['name'], 0,0); | ||
| 57 | -// $cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->param['path'].'" https://v6-file.globalso.com/upload.php'; | ||
| 58 | -// echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL; | ||
| 59 | -// $code = shell_exec($cmd); | ||
| 60 | $code = $this->synchronizationFile($path); | 54 | $code = $this->synchronizationFile($path); |
| 61 | if(200 != (int)$code){ | 55 | if(200 != (int)$code){ |
| 62 | echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL; | 56 | echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL; |
-
请 注册 或 登录 后发表评论