From 6c02390071e11085c5a4267c515e374272003fb0 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Wed, 26 Apr 2023 08:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=94=AE=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemCrudServices.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crmeb/app/services/system/SystemCrudServices.php b/crmeb/app/services/system/SystemCrudServices.php index 37320f5cc..9ef6baeef 100644 --- a/crmeb/app/services/system/SystemCrudServices.php +++ b/crmeb/app/services/system/SystemCrudServices.php @@ -781,6 +781,9 @@ class SystemCrudServices extends BaseServices $table = new Table($tableName, ['comment' => $tableComment], $this->getAdapter()); //创建字段 foreach ($tableField as $item) { + if (isset($item['primaryKey']) && $item['primaryKey']) { + continue; + } $option = []; if (isset($item['limit'])) { $option['limit'] = (int)$item['limit'];