This commit is contained in:
eson 2023-11-24 10:38:05 +08:00
parent 47aefb5e00
commit 9ffd7226f9

View File

@ -45,7 +45,9 @@ func (l *UserGetProfileLogic) UserGetProfile(req *types.QueryProfileRequest, use
return resp.SetStatus(basic.CodeDbSqlErr, err) // 返回数据库创建错误
}
profileBase["email"] = *user.Email
if bmap, ok := profileBase["base"].(map[string]any); ok {
bmap["email"] = *user.Email
}
return resp.SetStatus(basic.CodeOK, profileBase)
}