Merge branch release/21.7.3 of zentao/zentaopms (#10369)

This commit is contained in:
刘刚
2025-07-15 13:03:04 +08:00
committed by Gitfox
+2 -2
View File
@@ -578,7 +578,7 @@ class file extends control
}
$fileID = $file->id;
if(helper::isAjaxRequest() || (isset($_SERVER['HTTP_SEC_FETCH_MODE']) && in_array($_SERVER['HTTP_SEC_FETCH_MODE'], array('cors', 'same-origin')))) return $this->fetch('file', 'read', "fileID=$fileID&stream=$stream");
if($stream) return $this->fetch('file', 'read', "fileID=$fileID&stream=$stream");
return $this->fetch('file', 'download', "fileID=$fileID");
}
http_response_code(404);
@@ -596,7 +596,7 @@ class file extends control
}
$fileID = $file->id;
if(helper::isAjaxRequest() || (isset($_SERVER['HTTP_SEC_FETCH_MODE']) && in_array($_SERVER['HTTP_SEC_FETCH_MODE'], array('cors', 'same-origin')))) return $this->fetch('file', 'read', "fileID=$fileID&stream=$stream");
if($stream) return $this->fetch('file', 'read', "fileID=$fileID&stream=$stream");
return $this->fetch('file', 'download', "fileID=$fileID");
}