合并分支 'master-server' 到 'master'
gx文件未上传成功 查看合并请求 !719
正在显示
1 个修改的文件
包含
1 行增加
和
9 行删除
| @@ -146,15 +146,7 @@ class FileController | @@ -146,15 +146,7 @@ class FileController | ||
| 146 | * @time :2024/4/8 11:10 | 146 | * @time :2024/4/8 11:10 |
| 147 | */ | 147 | */ |
| 148 | public function synchronizationFile($fileName,$location){ | 148 | public function synchronizationFile($fileName,$location){ |
| 149 | - //同步到大文件 | ||
| 150 | - $file_path = $this->getUrl($this->path.'/'.$fileName, 0,$location); | ||
| 151 | - $headers = get_headers($file_path, 1); | ||
| 152 | - if (strpos($headers[0], '200') === false) { | ||
| 153 | - $errorFileModel = new ErrorFile(); | ||
| 154 | - $errorFileModel->add(['path'=>$this->param['path'].'/'.$this->param['name']]); | ||
| 155 | - }else{ | ||
| 156 | - SyncImageFileJob::dispatch(['path'=>$this->path,'name'=>$fileName,'location'=>$location]); | ||
| 157 | - } | 149 | + SyncImageFileJob::dispatch(['path'=>$this->path,'name'=>$fileName,'location'=>$location]); |
| 158 | return true; | 150 | return true; |
| 159 | } | 151 | } |
| 160 | 152 |
-
请 注册 或 登录 后发表评论