1 Commits

Author SHA1 Message Date
qhd
960dca6a50 fix: 修正 creator 字段空值检查逻辑 2026-04-22 15:03:39 +08:00

View File

@@ -188,7 +188,7 @@ func insertHook(ctx context.Context, in *gdb.HookInsertInput) (result sql.Result
} }
} }
if _, ok := in.Data[i]["creator"]; ok { if _, ok := in.Data[i]["creator"]; ok {
if g.IsEmpty(in.Data[i]["tenant_id"]) { if g.IsEmpty(in.Data[i]["creator"]) {
if !g.IsEmpty(userInfo.UserName) { if !g.IsEmpty(userInfo.UserName) {
in.Data[i]["creator"] = userInfo.UserName in.Data[i]["creator"] = userInfo.UserName
} else { } else {