This commit is contained in:
gazebo
2019-11-29 17:19:24 +08:00
parent 09944d68cd
commit 6d1129a61c

View File

@@ -904,6 +904,10 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in
toDate = fromDate
}
toDate = utils.Time2Date(toDate)
curDate := utils.Time2Date(time.Now())
if toDate.Sub(curDate) > 0 {
toDate = curDate
}
if toDate.Sub(fromDate) > 7*24*time.Hour {
return "", fmt.Errorf("最多一次一周,请调整时间")
}