[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

View File

@@ -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