diff --git a/server/info/internal/logic/usergetprofilelogic.go b/server/info/internal/logic/usergetprofilelogic.go index 15f840ac..be80d866 100644 --- a/server/info/internal/logic/usergetprofilelogic.go +++ b/server/info/internal/logic/usergetprofilelogic.go @@ -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) }