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