Skip to content

Commit

Permalink
修复获取getinfo时候,userName 事件结果为 nickName 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Akiraka authored Oct 24, 2024
1 parent 48e7ce8 commit f3d744f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/admin/apis/sys_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ func (e SysUser) GetInfo(c *gin.Context) {
if sysUser.Avatar != "" {
mp["avatar"] = sysUser.Avatar
}
mp["userName"] = sysUser.NickName
mp["userName"] = sysUser.Username
mp["userId"] = sysUser.UserId
mp["deptId"] = sysUser.DeptId
mp["name"] = sysUser.NickName
Expand Down

0 comments on commit f3d744f

Please sign in to comment.