From be358c9984be584db6fca20d0293d67b094e9fdd Mon Sep 17 00:00:00 2001 From: ziming Date: Mon, 16 Jun 2025 10:05:23 +0800 Subject: [PATCH] timeSliceQuery 8 --- internal/data/mixrepoimpl/cmb.go | 37 -------------------------------- 1 file changed, 37 deletions(-) diff --git a/internal/data/mixrepoimpl/cmb.go b/internal/data/mixrepoimpl/cmb.go index 00ee914..a35b4f2 100644 --- a/internal/data/mixrepoimpl/cmb.go +++ b/internal/data/mixrepoimpl/cmb.go @@ -307,43 +307,6 @@ func (s *CmbMixRepoImpl) Request(ctx context.Context, req *v1.CmbRequest, uri st return response, nil } -// -//func (s *CmbMixRepoImpl) Request(ctx context.Context, req *v1.CmbRequest, uri string) (*v1.CmbReply, error) { -// -// kvRows := helper.SortStructFieldsByKey(req) -// -// uv := url.Values{} -// -// for _, kv := range kvRows { -// uv.Set(kv.Key, fmt.Sprintf("%v", kv.Value)) -// } -// -// requestUrl := uri + "?" + uv.Encode() -// -// _, bodyBytes, err := request.POST(ctx, requestUrl, nil, s.options) -// if err != nil { -// log.Errorf("请求掌上生活错误,url:%s,err:%v", requestUrl, err) -// return nil, err -// } -// -// if len(bodyBytes) == 0 { -// return nil, errors.New("请求掌上生活错误,请求失败,返回数据为空") -// } -// -// var response *v1.CmbReply -// if err = json.Unmarshal(bodyBytes, &response); err != nil { -// log.Errorf("请求掌上生活错误,数据解析报错:%s,url:%s,bodyBytes:%s", err.Error(), requestUrl, string(bodyBytes)) -// return nil, err -// } -// -// if response.RespCode != vo.CmbResponseStatusSuccess.GetValue() { -// log.Errorf("请求掌上生活返回报错:msg:%s,url:%s,bodyBytes:%s", response.RespMsg, requestUrl, string(bodyBytes)) -// return nil, fmt.Errorf(response.RespMsg) -// } -// -// return response, nil -//} - func (s *CmbMixRepoImpl) Decrypt(_ context.Context, encryptBody string) (string, error) { if len(s.bc.Cmb.CmbSm2Pik) == 0 {