This commit is contained in:
gazebo
2019-03-13 16:45:43 +08:00
parent 5d37250b55
commit 0f7a3ab809
2 changed files with 4 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ func (c *PurchaseHandler) RefreshComment(fromTime, toTime time.Time) (err error)
if stepToTime.Sub(toTime) > 0 {
stepToTime = toTime
}
if stepToTime.Sub(stepFromTime) == 0 {
break
}
resultList, err2 := api.EbaiAPI.GetEleCommentList(stepFromTime, stepToTime, "", "", ebaiapi.ReplyStatusAll, ebaiapi.CommentLevelAll, ebaiapi.CommentContentAll)
if err = err2; err == nil {
for _, result := range resultList {