diff --git a/server/info/internal/logic/infologic.go b/server/info/internal/logic/infologic.go index 2fec4e99..5b969306 100644 --- a/server/info/internal/logic/infologic.go +++ b/server/info/internal/logic/infologic.go @@ -116,7 +116,7 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r for _, mquery := range mquerys { sqlstr := fmt.Sprintf("select id, module, %s as querydata from %s where %s ", mquery.EncodeQuery("metadata"), mquery.TableName, cond) - var info InfoType + raw := l.svcCtx.MysqlConn.Raw(sqlstr) if raw.Error != nil { @@ -128,8 +128,9 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r } } - var a any - err := raw.Scan(&a).Error + var info InfoType + err := raw.Scan(&info).Error + logx.Error(info, err) if err == gorm.ErrRecordNotFound { continue }