From 8bd87c77e5d8d110b9e4501868130e9cd15ebfaa Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 1 Sep 2023 14:12:38 +0800 Subject: [PATCH] fix --- server/info/internal/logic/infologic.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/info/internal/logic/infologic.go b/server/info/internal/logic/infologic.go index 385860f4..2fec4e99 100644 --- a/server/info/internal/logic/infologic.go +++ b/server/info/internal/logic/infologic.go @@ -128,7 +128,8 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r } } - err := raw.Scan(&info).Error + var a any + err := raw.Scan(&a).Error if err == gorm.ErrRecordNotFound { continue }