up
This commit is contained in:
@@ -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("最多一次一周,请调整时间")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user