- fk
This commit is contained in:
@@ -74,10 +74,11 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
comment2 := &legacymodel.JxBadComments{
|
comment2 := &legacymodel.JxBadComments{
|
||||||
OrderId: orderComment.VendorOrderID,
|
OrderId: orderComment.VendorOrderID,
|
||||||
}
|
}
|
||||||
err := dao.GetEntity(db, comment2, "OrderId")
|
err = dao.GetEntity(db, comment2, "OrderId")
|
||||||
if err == nil || dao.IsNoRowsError(err) {
|
if err == nil || dao.IsNoRowsError(err) {
|
||||||
isNewComment := false
|
isNewComment := false
|
||||||
if dao.IsNoRowsError(err) {
|
if dao.IsNoRowsError(err) {
|
||||||
|
err = nil
|
||||||
isNewComment = true
|
isNewComment = true
|
||||||
if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < MAX_REAPLY_TIME {
|
if orderComment.IsReplied == 0 && time.Now().Sub(orderComment.CommentCreatedAt) < MAX_REAPLY_TIME {
|
||||||
c.replyOrderComment(orderComment)
|
c.replyOrderComment(orderComment)
|
||||||
@@ -136,8 +137,6 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globals.SugarLogger.Warnf("OnOrderComments orderID:%s failed with error:%v", orderComment.VendorOrderID, err)
|
globals.SugarLogger.Warnf("OnOrderComments orderID:%s failed with error:%v", orderComment.VendorOrderID, err)
|
||||||
}
|
|
||||||
if err != nil {
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user