From 1a7aeb6a7fb81e079f3a46b462bb69b28036aa6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 15 Dec 2022 18:23:08 +0800 Subject: [PATCH] 1 --- platformapi/tiktok_shop/tiktok_api/order.go | 4 ---- platformapi/tiktok_shop/tiktok_api/sku.go | 13 ------------- 2 files changed, 17 deletions(-) diff --git a/platformapi/tiktok_shop/tiktok_api/order.go b/platformapi/tiktok_shop/tiktok_api/order.go index 175717c0..0d02b024 100644 --- a/platformapi/tiktok_shop/tiktok_api/order.go +++ b/platformapi/tiktok_shop/tiktok_api/order.go @@ -32,8 +32,6 @@ func (a *API) GetTiktokOrderDetail(orderId string) (*order_orderDetail_response. IsSearchable: false, } orderDetail, err := reqParam.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("获取订单详情%s", reqParam.GetUrlPath()) - globals.SugarLogger.Debugf("获取订单详情:=%s", utils.Format4Output(orderDetail, false)) if err != nil { return nil, err } @@ -53,8 +51,6 @@ func (a *API) QueryAfsOrderDetail(afterSaleId string, needOperationRecord bool) param.AfterSaleId = afterSaleId result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("查询售后订单详情%s", request.GetUrlPath()) - globals.SugarLogger.Debugf("查询售后订单详情:=%s", utils.Format4Output(result, false)) if err != nil { return nil, err } diff --git a/platformapi/tiktok_shop/tiktok_api/sku.go b/platformapi/tiktok_shop/tiktok_api/sku.go index 8d9c2f55..2d0a2c31 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku.go +++ b/platformapi/tiktok_shop/tiktok_api/sku.go @@ -150,16 +150,11 @@ func (a *API) EditStoreCommodity(sku *product_editV2_request.ProductEditV2Param) request := product_editV2_request.New() request.Param = sku - globals.SugarLogger.Debugf("=====EditStoreCommodity %s", utils.Format4Output(sku, false)) result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("=====EditStoreCommodity result %s", utils.Format4Output(result, false)) - globals.SugarLogger.Debugf("=====EditStoreCommodity err %s", utils.Format4Output(err, false)) if err != nil { - globals.SugarLogger.Debugf("======EditStoreCommodity logid: %s,%d", result.LogId, sku.MainProductId) return err } if result.Code != RequestSuccessCode { - globals.SugarLogger.Debugf("======EditStoreCommodity logid: %s,%d", result.LogId, sku.MainProductId) return errors.New(result.SubMsg) } return nil @@ -171,8 +166,6 @@ func (a *API) EditStoreCommodityCommit(sku *product_editV2_commit_request.Produc request.Param = sku result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("商品上架=========:%s", request.GetUrlPath()) - globals.SugarLogger.Debugf("商品上架:=%s", utils.Format4Output(result, false)) if err != nil { return err } @@ -190,8 +183,6 @@ func (a *API) DeleteStoreCommodity(productId int64) error { param.DeleteForever = true result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("删除商品=========:%s", request.GetUrlPath()) - globals.SugarLogger.Debugf("删除商品:=%s", utils.Format4Output(result, false)) if err != nil { return err } @@ -209,8 +200,6 @@ func (a *API) ProductSetOffline(productId int64) error { param.ProductId = productId result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("商品下架=========:%s", request.GetUrlPath()) - globals.SugarLogger.Debugf("商品下架:=%s", utils.Format4Output(result, false)) if err != nil { return err } @@ -229,8 +218,6 @@ func (a *API) GetSkuDetail(productId, outProductId string) (*product_detail_resp } result, err := request.Execute(a.accessTokenObj) - globals.SugarLogger.Debugf("获取商品详情=========:%s", request.GetUrlPath()) - globals.SugarLogger.Debugf("获取商品详情:=%s", utils.Format4Output(result, false)) if err != nil { return nil, err }