fix:订单详情--状态支付首款才显示倒计时未支付
This commit is contained in:
parent
b3c1e21ccf
commit
e34331817b
|
@ -1754,7 +1754,10 @@ func (d *defaultOrder) OrderDetailHandler(ctx context.Context, orderInfo *gmodel
|
||||||
orderDetail.OrderAmount.Subtotal = order.GetAmountInfoFormat(&orderAmount.Subtotal, true)
|
orderDetail.OrderAmount.Subtotal = order.GetAmountInfoFormat(&orderAmount.Subtotal, true)
|
||||||
orderDetail.OrderAmount.Total = order.GetAmountInfoFormat(&orderAmount.Total, true)
|
orderDetail.OrderAmount.Total = order.GetAmountInfoFormat(&orderAmount.Total, true)
|
||||||
orderDetail.PayStatus = constants.OrderPayStatusCode(*orderInfo.PayStatus)
|
orderDetail.PayStatus = constants.OrderPayStatusCode(*orderInfo.PayStatus)
|
||||||
orderDetail.PayTimeout = time.Duration(orderInfo.Ctime.Add(30*time.Minute).UTC().Unix() - time.Now().UTC().Unix())
|
if *orderInfo.PayStatus == int64(constants.ORDER_STATUS_UNPAIDDEPOSIT) {
|
||||||
|
orderDetail.PayTimeout = time.Duration(orderInfo.Ctime.Add(30*time.Minute).UTC().Unix() - time.Now().UTC().Unix())
|
||||||
|
}
|
||||||
|
|
||||||
orderDetail.OrderInfo = gmodel.OrderInfo{
|
orderDetail.OrderInfo = gmodel.OrderInfo{
|
||||||
UserId: *orderInfo.UserId,
|
UserId: *orderInfo.UserId,
|
||||||
DeliveryMethod: *orderInfo.DeliveryMethod,
|
DeliveryMethod: *orderInfo.DeliveryMethod,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user