作者 李宇航

合并分支 'master-server' 到 'master'

gx文件未上传成功



查看合并请求 !719
... ... @@ -146,15 +146,7 @@ class FileController
* @time :2024/4/8 11:10
*/
public function synchronizationFile($fileName,$location){
//同步到大文件
$file_path = $this->getUrl($this->path.'/'.$fileName, 0,$location);
$headers = get_headers($file_path, 1);
if (strpos($headers[0], '200') === false) {
$errorFileModel = new ErrorFile();
$errorFileModel->add(['path'=>$this->param['path'].'/'.$this->param['name']]);
}else{
SyncImageFileJob::dispatch(['path'=>$this->path,'name'=>$fileName,'location'=>$location]);
}
SyncImageFileJob::dispatch(['path'=>$this->path,'name'=>$fileName,'location'=>$location]);
return true;
}
... ...