fix:支付
This commit is contained in:
parent
6c53238457
commit
f876971e50
@ -713,19 +713,19 @@ func (d *defaultOrder) Detail(ctx context.Context, in *DetailReq) (res *DetailRe
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 是否超时支付
|
// 是否超时支付
|
||||||
if *order.Status == int64(constants.ORDER_STATUS_UNPAIDDEPOSIT) {
|
// if *order.Status == int64(constants.ORDER_STATUS_UNPAIDDEPOSIT) {
|
||||||
ctime := *order.Ctime
|
// ctime := *order.Ctime
|
||||||
ctimeTimeOut := ctime.Add(30 * time.Minute).UTC().Unix()
|
// ctimeTimeOut := ctime.Add(30 * time.Minute).UTC().Unix()
|
||||||
ntimeTimeOut := time.Now().UTC().Unix()
|
// ntimeTimeOut := time.Now().UTC().Unix()
|
||||||
if ctimeTimeOut < ntimeTimeOut {
|
// if ctimeTimeOut < ntimeTimeOut {
|
||||||
errorCode = *basic.CodeErrOrderCreatePrePaymentTimeout
|
// errorCode = *basic.CodeErrOrderCreatePrePaymentTimeout
|
||||||
err = errors.New("order pay timeout")
|
// err = errors.New("order pay timeout")
|
||||||
logc.Errorf(ctx, "order detail failed, err: %v", err)
|
// logc.Errorf(ctx, "order detail failed, err: %v", err)
|
||||||
return &DetailRes{
|
// return &DetailRes{
|
||||||
ErrorCode: errorCode,
|
// ErrorCode: errorCode,
|
||||||
}, err
|
// }, err
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
ress, err := d.OrderDetailHandler(ctx, &order, 1)
|
ress, err := d.OrderDetailHandler(ctx, &order, 1)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user