Merge branch 'master_oss_wangjianhua' into 'master'

Modify file module to support OSS plug.

See merge request easycorp/zentaopms!6367
This commit is contained in:
王怡栋
2022-11-24 06:50:16 +00:00
8 changed files with 95 additions and 38 deletions
+1 -3
View File
@@ -1398,9 +1398,7 @@ class testtaskModel extends model
$stepFiles = array();
foreach($files as $file)
{
$pathName = $this->file->getRealPathName($file->pathname);
$file->webPath = $this->file->webPath . $pathName;
$file->realPath = $this->file->savePath . $pathName;
$this->file->setFileWebAndRealPaths($file);
if($file->objectType == 'caseResult')
{
$resultFiles[$file->objectID][$file->id] = $file;