- temporarily disable log error for OrgReplyComment.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user