diff --git a/business/partner/purchase/jd/order_legacy_comment.go b/business/partner/purchase/jd/order_legacy_comment.go index 3780fdb4e..bc36a142d 100644 --- a/business/partner/purchase/jd/order_legacy_comment.go +++ b/business/partner/purchase/jd/order_legacy_comment.go @@ -146,13 +146,15 @@ func (c *PurchaseHandler) replyOrderComment(intOrderID int64, jdStoreNo string, config := replyConfig[score] delaySeconds := config.delayGapBegin + rand.Intn(config.delayGapEnd-config.delayGapBegin) 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() { - utils.CallFuncLogError(func() error { + err2 := utils.CallFuncLogError(func() error { if globals.ReallyCallPlatformAPI { return api.JdAPI.OrgReplyComment(intOrderID, jdStoreNo, content, utils.GetAPIOperator("")) } return nil }, "replyOrderComment %d", intOrderID) + globals.SugarLogger.Debugf("replyOrderComment orderID:%d, error:%v", intOrderID, err2) }) return nil }