From 1bb8cbcecd5435b779f2da1d0bf7aeedcb10b6ce Mon Sep 17 00:00:00 2001 From: lq Date: Mon, 1 Sep 2025 13:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/core/CodeGenerationService.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) mode change 100644 => 100755 app/Service/core/CodeGenerationService.php diff --git a/app/Service/core/CodeGenerationService.php b/app/Service/core/CodeGenerationService.php old mode 100644 new mode 100755 index fbe44639..cca67390 --- a/app/Service/core/CodeGenerationService.php +++ b/app/Service/core/CodeGenerationService.php @@ -15,7 +15,9 @@ class CodeGenerationService { const TEXT_TYPE = [ 'LONGTEXT', - 'TEXT' + 'TEXT', + 'longtext', + 'text', ]; const INT_TYPE = [ 'INT', @@ -23,6 +25,13 @@ class CodeGenerationService 'BIGINT', 'SMALLINT', 'FLOAT', + 'DECIMAL', + 'int', + 'tinyint', + 'bigint', + 'smallint', + 'float', + 'decimal', ]; private static mixed $_instance; @@ -140,6 +149,8 @@ class CodeGenerationService 'created_at' => time(), 'updated_at' => time(), ]); + // 删除Store/app/www + Storage::deleteDirectory('www'); return [ 'id' => $insertModel->id, 'file_name' => $insertModel->file_name @@ -444,6 +455,9 @@ class CodeGenerationService { if (empty($item)) return; // 设置列表字段 + if (!isset($item['tableShow'])) { + ds($item); + } if ($item['tableShow']) { $this->selectField .= ', "' . $item['name'] . '"'; }