From 49ed6cb808223871d948096e9b8678559bf90429 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 7 Jul 2021 10:29:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20Soft=20=E5=8D=95=E8=AF=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/command/Crud.php | 2 +- application/admin/command/Crud/stubs/model.stub | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/admin/command/Crud.php b/application/admin/command/Crud.php index 927625b77..9f97fa8c8 100755 --- a/application/admin/command/Crud.php +++ b/application/admin/command/Crud.php @@ -868,7 +868,7 @@ class Crud extends Command 'editList' => $editList, 'javascriptList' => $javascriptList, 'langList' => $langList, - 'sofeDeleteClassPath' => in_array($this->deleteTimeField, $fieldArr) ? "use traits\model\SoftDelete;" : '', + 'softDeleteClassPath' => in_array($this->deleteTimeField, $fieldArr) ? "use traits\model\SoftDelete;" : '', 'softDelete' => in_array($this->deleteTimeField, $fieldArr) ? "use SoftDelete;" : '', 'modelAutoWriteTimestamp' => in_array($this->createTimeField, $fieldArr) || in_array($this->updateTimeField, $fieldArr) ? "'int'" : 'false', 'createTime' => in_array($this->createTimeField, $fieldArr) ? "'{$this->createTimeField}'" : 'false', diff --git a/application/admin/command/Crud/stubs/model.stub b/application/admin/command/Crud/stubs/model.stub index 4e92e3a98..855af095e 100755 --- a/application/admin/command/Crud/stubs/model.stub +++ b/application/admin/command/Crud/stubs/model.stub @@ -3,7 +3,7 @@ namespace {%modelNamespace%}; use think\Model; -{%sofeDeleteClassPath%} +{%softDeleteClassPath%} class {%modelName%} extends Model { -- Gitee