删除日志

This commit is contained in:
邹宗楠
2023-07-18 13:45:22 +08:00
parent d32e9dd2db
commit 5bfffa506b
6 changed files with 1 additions and 12 deletions

View File

@@ -29,7 +29,6 @@ func (c *PurchaseHandler) StartRefreshComment() {
}
func (c *PurchaseHandler) refreshCommentOnce() {
globals.SugarLogger.Debugf("refreshCommentOnce = %s", utils.Format4Output(time.Now(), false))
c.RefreshComment(time.Now().Add(-RefreshCommentTime), time.Now())
utils.AfterFuncWithRecover(RefreshCommentTimeInterval, func() {
c.refreshCommentOnce()
@@ -75,10 +74,10 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
IsReplied: int8(mtwmComment.ReplyStatus),
StoreID: storeDetail.ID,
}
} else {
if orderComment.IsReplied == 0 {
orderComment.Content = mtwmComment.CommentContent
orderComment.CommentCreatedAt = createdTime
} else {
orderComment.Content = mtwmComment.AddComment
if updatedTime, err := utils.TryStr2Time(mtwmComment.CommentTime); err == nil {
orderComment.CommentCreatedAt = updatedTime
@@ -91,8 +90,6 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
}, storeIDs)
task.Run()
resultList, err2 := task.GetResult(0)
globals.SugarLogger.Debugf("resultList := %s", utils.Format4Output(resultList, false))
globals.SugarLogger.Debugf("err2 := %s", utils.Format4Output(err2, false))
if err = err2; err != nil {
return err
}