From 5bfffa506b09bb093906d2dfe1e7fa2f2096c64c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 18 Jul 2023 13:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order_comment.go | 3 --- business/jxstore/cms/store.go | 1 - business/partner/printer/xpyun/xpyun.go | 1 - business/partner/purchase/mtwm/order_comment.go | 5 +---- business/partner/purchase/tiktok_store/store.go | 1 - business/partner/purchase/tiktok_store/store_sku2_utils.go | 2 -- 6 files changed, 1 insertion(+), 12 deletions(-) diff --git a/business/jxcallback/orderman/order_comment.go b/business/jxcallback/orderman/order_comment.go index 958f98591..02151b26e 100644 --- a/business/jxcallback/orderman/order_comment.go +++ b/business/jxcallback/orderman/order_comment.go @@ -80,7 +80,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) ( if err == nil || dao.IsNoRowsError(err) { isNewComment := false if dao.IsNoRowsError(err) { - globals.SugarLogger.Debugf("========dao.IsNoRowsError= :%s", utils.Format4Output(orderComment, false)) err = nil isNewComment = true if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < time.Duration(orderComment.ModifyDuration)*time.Hour { @@ -158,8 +157,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) ( } } } - globals.SugarLogger.Debugf("========comment2= :%s", utils.Format4Output(comment2, false)) - globals.SugarLogger.Debugf("========isNewComment= :%s", utils.Format4Output(isNewComment, false)) if err == nil { if isNewComment { diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 2fce7d088..bbcd6d7df 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1688,7 +1688,6 @@ func DeleteStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor if err = dao.GetEntity(db, storeMap, model.FieldStoreID, model.FieldVendorID, model.FieldDeletedAt); err == nil { if handler := partner.GetPurchasePlatformFromVendorID(vendorID); handler != nil { handler.UpdateStoreCustomID(ctx, storeMap.VendorOrgCode, storeMap.VendorStoreID, utils.Str2Int64WithDefault(storeMap.VendorStoreID, 0)) - globals.SugarLogger.Debugf("DeleteStoreVendorMap storeMap.VendorStoreID ====%d", storeMap.VendorStoreID) } storeMap.FakeOpenStart = 0 storeMap.FakeOpenStop = 0 diff --git a/business/partner/printer/xpyun/xpyun.go b/business/partner/printer/xpyun/xpyun.go index 7fe73171f..0641f4623 100644 --- a/business/partner/printer/xpyun/xpyun.go +++ b/business/partner/printer/xpyun/xpyun.go @@ -143,7 +143,6 @@ func (c *PrinterHandler) PrintCancelOrRefundOrder(ctx *jxcontext.Context, printT } else { content = c.getCancelOrRefundOrderContentBig(order, printType, storeDetail) } - globals.SugarLogger.Debugf("PrintCancelOrRefundOrder content=====%s", content) if content == "" { return nil, nil } diff --git a/business/partner/purchase/mtwm/order_comment.go b/business/partner/purchase/mtwm/order_comment.go index 984f9b1e2..b671bfd9c 100644 --- a/business/partner/purchase/mtwm/order_comment.go +++ b/business/partner/purchase/mtwm/order_comment.go @@ -29,7 +29,6 @@ func (c *PurchaseHandler) StartRefreshComment() { } func (c *PurchaseHandler) refreshCommentOnce() { - globals.SugarLogger.Debugf("refreshCommentOnce = %s", utils.Format4Output(time.Now(), false)) c.RefreshComment(time.Now().Add(-RefreshCommentTime), time.Now()) utils.AfterFuncWithRecover(RefreshCommentTimeInterval, func() { c.refreshCommentOnce() @@ -75,10 +74,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) IsReplied: int8(mtwmComment.ReplyStatus), StoreID: storeDetail.ID, } + } else { if orderComment.IsReplied == 0 { orderComment.Content = mtwmComment.CommentContent orderComment.CommentCreatedAt = createdTime - } else { orderComment.Content = mtwmComment.AddComment if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil { orderComment.CommentCreatedAt = updatedTime @@ -91,8 +90,6 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error) }, storeIDs) task.Run() resultList, err2 := task.GetResult(0) - globals.SugarLogger.Debugf("resultList := %s", utils.Format4Output(resultList, false)) - globals.SugarLogger.Debugf("err2 := %s", utils.Format4Output(err2, false)) if err = err2; err != nil { return err } diff --git a/business/partner/purchase/tiktok_store/store.go b/business/partner/purchase/tiktok_store/store.go index 1e4d94e50..4e81e2273 100644 --- a/business/partner/purchase/tiktok_store/store.go +++ b/business/partner/purchase/tiktok_store/store.go @@ -660,7 +660,6 @@ func UpdateFreeShipTemplate(vendorOrgCode string, storeID int, shipFee int64) er OverAmount: shipFee * 100, }}, } - globals.SugarLogger.Debugf("ykljkfjapojf param====%s", utils.Format4Output(param, false)) if _, err := a.FreightTemplateUpdate(param); err != nil { return errors.New("更新包邮运费模板失败") } diff --git a/business/partner/purchase/tiktok_store/store_sku2_utils.go b/business/partner/purchase/tiktok_store/store_sku2_utils.go index ff638af00..e2951fbc2 100644 --- a/business/partner/purchase/tiktok_store/store_sku2_utils.go +++ b/business/partner/purchase/tiktok_store/store_sku2_utils.go @@ -30,7 +30,6 @@ import ( "git.rosy.net.cn/jx-callback/business/model/dao" "git.rosy.net.cn/jx-callback/business/partner" "git.rosy.net.cn/jx-callback/business/partner/putils" - "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api/apimanager" ) @@ -858,7 +857,6 @@ func GetDeliveryTemp(api *tiktokShop.API, vendorStoreID string, storeDetail *dao } freightId = temp.TemplateId } - globals.SugarLogger.Debugf("freightId =last %d", freightId) return freightId, nil }