[fix]异常

This commit is contained in:
PandaX-Go
2024-12-06 17:37:11 +08:00
parent 905cb8873e
commit 4377970109
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -9,6 +9,7 @@
*.test *.test
.idea .idea
pandax pandax
static
*.git *.git

View File

@@ -9,6 +9,7 @@ import (
"pandax/apps/develop/entity" "pandax/apps/develop/entity"
"pandax/apps/develop/gen" "pandax/apps/develop/gen"
"pandax/apps/develop/services" "pandax/apps/develop/services"
"pandax/pkg/global"
"strings" "strings"
"sync" "sync"
) )
@@ -104,7 +105,8 @@ func (g *GenTableApi) Insert(rc *restfulx.ReqCtx) {
} }
genTable, err := tg.Generate() genTable, err := tg.Generate()
if err != nil { if err != nil {
biz.ErrIsNil(err, "创建表结构") global.Log.Error("创建表结构")
return
} }
genTable.OrgId = rc.LoginAccount.OrganizationId genTable.OrgId = rc.LoginAccount.OrganizationId
genTable.Owner = rc.LoginAccount.UserName genTable.Owner = rc.LoginAccount.UserName