This commit is contained in:
邹宗楠
2024-08-05 11:00:09 +08:00
parent f49f9fc141
commit f1b802a1c9

View File

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