From b325ad7ca7b8919860c7347081ac1ea50ed82fcd Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 9 Oct 2018 18:18:25 +0800 Subject: [PATCH] - temporarily disable log error for OrgReplyComment. --- .../partner/purchase/jd/order_legacy_comment.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/business/partner/purchase/jd/order_legacy_comment.go b/business/partner/purchase/jd/order_legacy_comment.go index f3db6e23a..790b1ca1a 100644 --- a/business/partner/purchase/jd/order_legacy_comment.go +++ b/business/partner/purchase/jd/order_legacy_comment.go @@ -150,12 +150,13 @@ func (c *PurchaseHandler) replyOrderComment(intOrderID int64, jdStoreNo string, content := config.comments[rand.Intn(len(config.comments))] globals.SugarLogger.Debugf("replyOrderComment orderID:%d, delaySeconds:%d, content:%s", intOrderID, delaySeconds, content) time.AfterFunc(time.Duration(delaySeconds)*time.Second, func() { - err2 := utils.CallFuncLogError(func() error { - if globals.ReallyCallPlatformAPI { - return api.JdAPI.OrgReplyComment(intOrderID, jdStoreNo, content, utils.GetAPIOperator("")) - } - return nil - }, "replyOrderComment %d", intOrderID) + // err2 := utils.CallFuncLogError(func() error { + // if globals.ReallyCallPlatformAPI { + // return api.JdAPI.OrgReplyComment(intOrderID, jdStoreNo, content, utils.GetAPIOperator("")) + // } + // return nil + // }, "replyOrderComment %d", intOrderID) + err2 := api.JdAPI.OrgReplyComment(intOrderID, jdStoreNo, content, utils.GetAPIOperator("")) globals.SugarLogger.Debugf("replyOrderComment orderID:%d, error:%v", intOrderID, err2) }) return nil