From c43d4d5f29da22386c2b6da72c8b605a7c01f161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 24 Oct 2022 11:22:08 +0800 Subject: [PATCH] 1 --- platformapi/fnpsapi_old/callback.go | 1 - platformapi/jdshopapi/store_page.go | 1 - platformapi/jdunionapi/jdunionapi.go | 1 - platformapi/platformapi.go | 3 +-- platformapi/q_bida/QBiDa_test.go | 2 -- platformapi/q_bida/q_bida_access.go | 3 --- 6 files changed, 1 insertion(+), 10 deletions(-) diff --git a/platformapi/fnpsapi_old/callback.go b/platformapi/fnpsapi_old/callback.go index 173887f4..096810d8 100644 --- a/platformapi/fnpsapi_old/callback.go +++ b/platformapi/fnpsapi_old/callback.go @@ -33,7 +33,6 @@ func (a *API) GetOrderCallbackMsg(data []byte) (orderMsg *WayBillInfo) { callbackInfo := &CallBackInfo{} err := utils.UnmarshalUseNumber(data, callbackInfo) if err != nil { - globals.SugarLogger.Debugf("fn msg faild %v, err : %v", string(data), err) return nil } if err == nil { diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index e298064b..d4410a55 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -65,7 +65,6 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{}, request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(fullURL, "", bizParams), nil) } a.FillRequestCookies(request) - //globals.SugarLogger.Debugf("AccessStorePageAccessStorePageAccessStorePage request", utils.Format4Output(request, true)) return request }, a.config, diff --git a/platformapi/jdunionapi/jdunionapi.go b/platformapi/jdunionapi/jdunionapi.go index e5e02590..78823550 100644 --- a/platformapi/jdunionapi/jdunionapi.go +++ b/platformapi/jdunionapi/jdunionapi.go @@ -3,7 +3,6 @@ package jdunionapi import ( "encoding/json" "fmt" - "git.rosy.net.cn/baseapi" "git.rosy.net.cn/baseapi/platformapi" "git.rosy.net.cn/baseapi/utils" "net/http" diff --git a/platformapi/platformapi.go b/platformapi/platformapi.go index cf8522f1..015ab8d6 100644 --- a/platformapi/platformapi.go +++ b/platformapi/platformapi.go @@ -5,7 +5,6 @@ import ( "compress/gzip" "errors" "fmt" - "git.rosy.net.cn/jx-callback/globals" "io/ioutil" "math" "net" @@ -122,7 +121,7 @@ func AccessPlatformAPIWithRetry(client *http.Client, handleRequest func() *http. usedMilliSecond := time.Now().Sub(beginTime) / time.Millisecond if err != nil { err, ok := err.(net.Error) - globals.SugarLogger.Debugf("AccessPlatformAPIWithRetry err %s", err) + baseapi.SugarLogger.Infof("err %s", err) recoverableErrorRetryCount++ if ok /*&& err.Timeout()*/ && recoverableErrorRetryCount <= config.MaxRecoverableRetryCount { // 只要是网络错误都重试 continue diff --git a/platformapi/q_bida/QBiDa_test.go b/platformapi/q_bida/QBiDa_test.go index f2191e51..28054071 100644 --- a/platformapi/q_bida/QBiDa_test.go +++ b/platformapi/q_bida/QBiDa_test.go @@ -45,7 +45,5 @@ package q_bida // Width: 100, // SendPhone: "18981810340", // }) -// globals.SugarLogger.Debug("err===", err) -// globals.SugarLogger.Debug("data===", &result) // //} diff --git a/platformapi/q_bida/q_bida_access.go b/platformapi/q_bida/q_bida_access.go index 63d1c65b..d727ed88 100644 --- a/platformapi/q_bida/q_bida_access.go +++ b/platformapi/q_bida/q_bida_access.go @@ -5,7 +5,6 @@ import ( "encoding/json" "errors" "fmt" - "git.rosy.net.cn/baseapi" "git.rosy.net.cn/baseapi/platformapi" "git.rosy.net.cn/baseapi/utils" "net/http" @@ -39,8 +38,6 @@ func (a *Api) SetExpirationTime(expiration int64) { // NewQBiDa 初始化token func NewQBiDa(account, password string, config ...*platformapi.APIConfig) *Api { - //account = "18048531223" - //password = "18080188338" if account == "" || password == "" { account = "18048531223" password = "18080188338"