From ccd6c7d13d1be34263af3aa163cb661a70da249a Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 12 Mar 2019 22:40:31 +0800 Subject: [PATCH] - fk --- business/jxcallback/orderman/oder_comment.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 } }