1
This commit is contained in:
@@ -138,10 +138,10 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
weixinmsg.PushJDBadCommentToWeiXin(comment2, orderComment.Score <= JX_BAD_COMMENTS_MAX_LEVEL, order)
|
weixinmsg.PushJDBadCommentToWeiXin(comment2, orderComment.Score <= JX_BAD_COMMENTS_MAX_LEVEL, order)
|
||||||
}
|
}
|
||||||
} else { // 修改评价,高于JX_BAD_COMMENTS_MAX_LEVEL
|
} else { // 修改评价,高于JX_BAD_COMMENTS_MAX_LEVEL
|
||||||
if orderComment.CommentCreatedAt.Sub(str2Time(comment2.Createtime)) == 0 ||
|
//if orderComment.CommentCreatedAt.Sub(str2Time(comment2.Createtime)) == 0 ||
|
||||||
orderComment.CommentCreatedAt.Sub(str2Time(comment2.Updatetime)) == 0 {
|
// orderComment.CommentCreatedAt.Sub(str2Time(comment2.Updatetime)) == 0 {
|
||||||
comment2 = nil // 重复
|
// comment2 = nil // 重复
|
||||||
} else {
|
//} else {
|
||||||
comment2.Updatetime = utils.Time2Str(orderComment.CommentCreatedAt)
|
comment2.Updatetime = utils.Time2Str(orderComment.CommentCreatedAt)
|
||||||
comment2.UpdatedMsg = orderComment.OriginalMsg
|
comment2.UpdatedMsg = orderComment.OriginalMsg
|
||||||
comment2.UpdatedScore = int(orderComment.Score)
|
comment2.UpdatedScore = int(orderComment.Score)
|
||||||
@@ -167,7 +167,7 @@ func (c *OrderManager) OnOrderComments(orderCommentList []*model.OrderComment) (
|
|||||||
}
|
}
|
||||||
weixinmsg.PushJDBadCommentToWeiXin(&comment3, orderComment.Score <= JX_BAD_COMMENTS_MAX_LEVEL, order)
|
weixinmsg.PushJDBadCommentToWeiXin(&comment3, orderComment.Score <= JX_BAD_COMMENTS_MAX_LEVEL, order)
|
||||||
}
|
}
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user