From 437797010998a13d1fe8e95fed8b724678395fc5 Mon Sep 17 00:00:00 2001 From: PandaX-Go Date: Fri, 6 Dec 2024 17:37:11 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + apps/develop/api/table.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 1acab18..b7a32d6 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ *.test .idea pandax +static *.git diff --git a/apps/develop/api/table.go b/apps/develop/api/table.go index 4401bee..be7486e 100644 --- a/apps/develop/api/table.go +++ b/apps/develop/api/table.go @@ -9,6 +9,7 @@ import ( "pandax/apps/develop/entity" "pandax/apps/develop/gen" "pandax/apps/develop/services" + "pandax/pkg/global" "strings" "sync" ) @@ -104,7 +105,8 @@ func (g *GenTableApi) Insert(rc *restfulx.ReqCtx) { } genTable, err := tg.Generate() if err != nil { - biz.ErrIsNil(err, "创建表结构") + global.Log.Error("创建表结构") + return } genTable.OrgId = rc.LoginAccount.OrganizationId genTable.Owner = rc.LoginAccount.UserName