From e716611c93c281dba51095c3905bc38ff9d6cec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 29 Jun 2020 09:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E8=A5=BF=E5=94=AE=E5=90=8E=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A024=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jx/order_afs.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/partner/purchase/jx/order_afs.go b/business/partner/purchase/jx/order_afs.go index 7d1ed91eb..10dcbce39 100644 --- a/business/partner/purchase/jx/order_afs.go +++ b/business/partner/purchase/jx/order_afs.go @@ -74,6 +74,9 @@ func (c *PurchaseHandler) PartRefundOrder(ctx *jxcontext.Context, order *model.G appID = "" salePrice int64 ) + if time.Now().Sub(order.OrderCreatedAt) > 24*time.Hour { + return fmt.Errorf("已超过售后申请时间,如有疑问请联系门店!") + } referer := ctx.GetRequest().Referer() index := strings.Index(referer, "//") if index > 0 {