From 6d1129a61cbd07f67a5ea91abfd370b85fac545a Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 29 Nov 2019 17:19:24 +0800 Subject: [PATCH] up --- business/jxcallback/orderman/orderman_ext.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index f4ea247b6..e3ceefd1c 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -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("最多一次一周,请调整时间") }