fix(user):修正对于用户名称是否为空的判断。
This commit is contained in:
parent
710d285733
commit
2218e27838
|
@ -327,8 +327,8 @@ func modifyAccountDetail(c *gin.Context) {
|
|||
newUserInfo := new(model.UserDetail)
|
||||
newUserInfo.Id = targetUserId
|
||||
newUserInfo.Name = &modForm.Name
|
||||
if &modForm.Name != nil {
|
||||
abbr := tools.PinyinAbbr(*&modForm.Name)
|
||||
if len(modForm.Name) > 0 {
|
||||
abbr := tools.PinyinAbbr(modForm.Name)
|
||||
newUserInfo.Abbr = &abbr
|
||||
}
|
||||
newUserInfo.Region = modForm.Region
|
||||
|
|
Loading…
Reference in New Issue
Block a user