This commit is contained in:
邹宗楠
2023-07-18 13:45:58 +08:00
parent e91890ce85
commit 9c4545ae32

View File

@@ -74,10 +74,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
IsReplied: int8(mtwmComment.ReplyStatus), IsReplied: int8(mtwmComment.ReplyStatus),
StoreID: storeDetail.ID, StoreID: storeDetail.ID,
} }
} else {
if orderComment.IsReplied == 0 { if orderComment.IsReplied == 0 {
orderComment.Content = mtwmComment.CommentContent orderComment.Content = mtwmComment.CommentContent
orderComment.CommentCreatedAt = createdTime orderComment.CommentCreatedAt = createdTime
} else {
orderComment.Content = mtwmComment.AddComment orderComment.Content = mtwmComment.AddComment
if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil { if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil {
orderComment.CommentCreatedAt = updatedTime orderComment.CommentCreatedAt = updatedTime