fix: fixed bug for add user in admin console page that calls and img_calls parameter not work

This commit is contained in:
RockYang
2023-09-22 18:15:32 +08:00
parent e3d6e5f420
commit f3697431a4
2 changed files with 3 additions and 2 deletions

View File

@@ -105,7 +105,8 @@ func (h *UserHandler) Save(c *gin.Context) {
types.ChatGLM: "",
},
}),
Calls: h.App.SysConfig.UserInitCalls,
Calls: data.Calls,
ImgCalls: data.ImgCalls,
}
res = h.db.Create(&u)
_ = utils.CopyObject(u, &userVo)