From f876971e505f144699a42d2e15f2c1cda2ad4104 Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Wed, 27 Sep 2023 11:10:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/repositories/order.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/service/repositories/order.go b/service/repositories/order.go index 0c6af039..b2349f43 100644 --- a/service/repositories/order.go +++ b/service/repositories/order.go @@ -713,19 +713,19 @@ func (d *defaultOrder) Detail(ctx context.Context, in *DetailReq) (res *DetailRe } // 是否超时支付 - if *order.Status == int64(constants.ORDER_STATUS_UNPAIDDEPOSIT) { - ctime := *order.Ctime - ctimeTimeOut := ctime.Add(30 * time.Minute).UTC().Unix() - ntimeTimeOut := time.Now().UTC().Unix() - if ctimeTimeOut < ntimeTimeOut { - errorCode = *basic.CodeErrOrderCreatePrePaymentTimeout - err = errors.New("order pay timeout") - logc.Errorf(ctx, "order detail failed, err: %v", err) - return &DetailRes{ - ErrorCode: errorCode, - }, err - } - } + // if *order.Status == int64(constants.ORDER_STATUS_UNPAIDDEPOSIT) { + // ctime := *order.Ctime + // ctimeTimeOut := ctime.Add(30 * time.Minute).UTC().Unix() + // ntimeTimeOut := time.Now().UTC().Unix() + // if ctimeTimeOut < ntimeTimeOut { + // errorCode = *basic.CodeErrOrderCreatePrePaymentTimeout + // err = errors.New("order pay timeout") + // logc.Errorf(ctx, "order detail failed, err: %v", err) + // return &DetailRes{ + // ErrorCode: errorCode, + // }, err + // } + // } ress, err := d.OrderDetailHandler(ctx, &order, 1) if err != nil {