From 3becece63c9ac6e1f96df34936c4bb3277a6afb1 Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Fri, 1 Sep 2023 14:27:51 +0800 Subject: [PATCH] fix --- server/info/internal/logic/infologic.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/server/info/internal/logic/infologic.go b/server/info/internal/logic/infologic.go index d0bb5274..5b89fc17 100644 --- a/server/info/internal/logic/infologic.go +++ b/server/info/internal/logic/infologic.go @@ -1,7 +1,6 @@ package logic import ( - "encoding/json" "fmt" "fusenapi/utils/auth" "fusenapi/utils/basic" @@ -140,14 +139,14 @@ func (l *InfoLogic) Info(req *types.UserInfoRequest, userinfo *auth.UserInfo) (r return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()) } - var querydata map[string]any = make(map[string]any) - err = json.Unmarshal([]byte(info.QueryData), &querydata) - if err != nil { - logx.Error(err, info) - return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData)) - } + // var querydata map[string]any = make(map[string]any) + // err = json.Unmarshal([]byte(info.QueryData), &querydata) + // if err != nil { + // logx.Error(err, info) + // return resp.SetStatusWithMessage(basic.CodeApiErr, err.Error()+":"+string(info.QueryData)) + // } - for k, v := range querydata { + for k, v := range info { metadict[k] = v } }