diff --git a/business/jxcallback/orderman/oder_comment.go b/business/jxcallback/orderman/oder_comment.go index fd0206383..ff53e14e1 100644 --- a/business/jxcallback/orderman/oder_comment.go +++ b/business/jxcallback/orderman/oder_comment.go @@ -74,10 +74,11 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) ( comment2 := &legacymodel.JxBadComments{ OrderId: orderComment.VendorOrderID, } - err := dao.GetEntity(db, comment2, "OrderId") + err = dao.GetEntity(db, comment2, "OrderId") if err == nil || dao.IsNoRowsError(err) { isNewComment := false if dao.IsNoRowsError(err) { + err = nil isNewComment = true if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < MAX_REAPLY_TIME { c.replyOrderComment(orderComment) @@ -136,8 +137,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) ( } if err != nil { globals.SugarLogger.Warnf("OnOrderComments orderID:%s failed with error:%v", orderComment.VendorOrderID, err) - } - if err != nil { break } }