From 3c5de1ee73fd64ebb60c4757ded41879178e757c Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Fri, 14 Apr 2023 17:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/SystemCrudServices.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/services/system/SystemCrudServices.php b/crmeb/app/services/system/SystemCrudServices.php index b43a2d01a..afa802c1e 100644 --- a/crmeb/app/services/system/SystemCrudServices.php +++ b/crmeb/app/services/system/SystemCrudServices.php @@ -474,16 +474,16 @@ class SystemCrudServices extends BaseServices $option['default'] = $item['default']; } //创建伪删除 - if ($item['file_type'] === 'addSoftDelete') { + if ($item['field_type'] === 'addSoftDelete') { $table->addSoftDelete(); $softDelete = true; - } else if ($item['file_type'] === 'addTimestamps') { + } else if ($item['field_type'] === 'addTimestamps') { //创建修改和增加时间 $table->addTimestamps(); $timestamps = true; } else { $option['comment'] = $item['comment']; - $table->addColumn($item['field'], $this->changeTabelRule($item['file_type']), $option); + $table->addColumn($item['field'], $this->changeTabelRule($item['field_type']), $option); } } //创建索引