diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 5404a7b25..3d309b13e 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -1556,7 +1556,7 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int) if store.OpenTime1 == 0 || store.CloseTime1 == 0 { return "", fmt.Errorf("该门店没有营业时间,不能接单!门店:[%v]", storeID) } - if opentime2.Sub(opentime1) <= time.Hour { + if closetime1.Sub(opentime1) <= time.Hour { return "", fmt.Errorf("该门店营业时间间隔过小,请确认!门店:[%v]", storeID) } if !(orderCreatedAt.Sub(opentime1) >= 0 && orderCreatedAt.Sub(closetime1) <= 0) {