This commit is contained in:
gazebo
2019-03-12 22:40:31 +08:00
parent b41289db2d
commit ccd6c7d13d

View File

@@ -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
}
}