From 9ffd7226f90b2e2f7f308eeab19bb8c00fe05add Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 24 Nov 2023 10:38:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/info/internal/logic/usergetprofilelogic.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) }