fix: 修正 creator 字段空值检查逻辑
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user