Automation init...3

This commit is contained in:
최준흠 2024-09-12 19:13:47 +09:00
parent 1e9842dc6e
commit 336360dcee
2 changed files with 6 additions and 2 deletions

View File

@ -95,7 +95,11 @@ class FileLibrary extends MyStorageLibrary
$fileInfos = pathinfo($this->_imageLibrary->getDestinationPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL); $fileInfos = pathinfo($this->_imageLibrary->getDestinationPath() . DIRECTORY_SEPARATOR . $this->getOriginName(), PATHINFO_ALL);
$dstFile = $fileInfos['filename'] . "_small." . $fileInfos['extension']; $dstFile = $fileInfos['filename'] . "_small." . $fileInfos['extension'];
$this->_imageLibrary->setDestinationFile($dstFile); $this->_imageLibrary->setDestinationFile($dstFile);
$formDatas['file_path'] = $this->_imageLibrary->create($this->getOriginName()); $formDatas['file_path'] = sprintf(
"%s/%s",
$this->getPath(),
$this->_imageLibrary->create($this->getOriginName())
);
$formDatas['user_pid'] = $this->getUserEntity()->getPK(); $formDatas['user_pid'] = $this->getUserEntity()->getPK();
$formDatas['user_name'] = $this->getUserEntity()->getTitle(); $formDatas['user_name'] = $this->getUserEntity()->getTitle();

View File

@ -73,7 +73,7 @@ class SmallImageLibrary extends ImageLibrary
$width, $width,
$height $height
)); ));
return sprintf("%s/%s", $this->getSourcePath(), $file); return $file;
} catch (\Exception $e) { } catch (\Exception $e) {
log_message("warning", $e->getMessage()); log_message("warning", $e->getMessage());
return false; return false;