From 115abc18ff1104c4e0e7a1e1cac06f39394b7af4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Fri, 6 Sep 2024 12:30:59 +0900 Subject: [PATCH] Automation init...1 --- .vscode/settings.json | 3 + app/Libraries/Mangboard/FreeboardLibrary.php | 1 - app/Libraries/Mangboard/MangboardLibrary.php | 2 - app/Libraries/YamapLibrary.php | 4 +- app/Models/CommonModel.php | 103 +++++++++++-------- app/Models/Mangboard/FreeboardModel.php | 21 +--- app/Models/Mangboard/UserModel.php | 22 +--- 7 files changed, 69 insertions(+), 87 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..7bf3b90 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "php.version": "8.3" +} \ No newline at end of file diff --git a/app/Libraries/Mangboard/FreeboardLibrary.php b/app/Libraries/Mangboard/FreeboardLibrary.php index 22b7c41..c454e32 100644 --- a/app/Libraries/Mangboard/FreeboardLibrary.php +++ b/app/Libraries/Mangboard/FreeboardLibrary.php @@ -23,7 +23,6 @@ class FreeboardLibrary extends MangboardLibrary public function create(FreeboardEntity $entity, array $formDatas = []): FreeboardEntity { - $this->getModel()->setCreateField(); //Create용 Field,Rule지정 $entity = $this->getModel()->create($entity, $formDatas); log_message("debug", __FUNCTION__ . "=>등록이 완료되었습니다."); return $entity; diff --git a/app/Libraries/Mangboard/MangboardLibrary.php b/app/Libraries/Mangboard/MangboardLibrary.php index dbf3e66..24ae229 100644 --- a/app/Libraries/Mangboard/MangboardLibrary.php +++ b/app/Libraries/Mangboard/MangboardLibrary.php @@ -2,9 +2,7 @@ namespace App\Libraries\Mangboard; -use App\Entities\Mangboard\UserEntity; use App\Libraries\CommonLibrary; -use App\Models\Mangboard\UserModel; abstract class MangboardLibrary extends CommonLibrary { diff --git a/app/Libraries/YamapLibrary.php b/app/Libraries/YamapLibrary.php index 1a84138..c132765 100644 --- a/app/Libraries/YamapLibrary.php +++ b/app/Libraries/YamapLibrary.php @@ -152,7 +152,7 @@ class YamapLibrary extends CommonLibrary if ($this->isContainsHttpOrHttps($image['orignal'])) { $mediaTags[] = $images['orignal']; } else { - $mediaTags[] = sprintf("\"%s\"", $image["path"], $image["fileName"], $image["fileName"]); + $mediaTags[] = sprintf("\"%s\"", $image["path"], $image["fileName"], $image["fileName"]); }; } @@ -162,7 +162,7 @@ class YamapLibrary extends CommonLibrary if ($this->isContainsHttpOrHttps($video['orignal'])) { $mediaTags[] = $videos['orignal']; } else { - $mediaTags[] = sprintf("