京西售后单增加24小时

This commit is contained in:
苏尹岚
2020-06-29 09:23:19 +08:00
parent 61a0c5aad8
commit e716611c93

View File

@@ -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 {