|
@@ -174,6 +174,7 @@ func convertProductOrderDetailDTO(order orderDao.ProductOrder) (orderDetailDTO P
|
|
|
orderDetailDTO.StatusCN = transProductOrderStatusMap[orderDao.OrderStatusClosed]
|
|
|
} else {
|
|
|
orderDetailDTO.PaymentTimeRemain = int64(duration.Seconds())
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
if order.Status == orderDao.OrderStatusPaid {
|
|
@@ -192,7 +193,7 @@ func convertProductOrderDetailDTO(order orderDao.ProductOrder) (orderDetailDTO P
|
|
|
if err != nil {
|
|
|
logger.Error("获取产品信息失败:%v,productId:%d", err, order.ProductID)
|
|
|
}
|
|
|
- if product.Type == productDao.Package {
|
|
|
+ if product.Type != productDao.Package {
|
|
|
orderDetailDTO.ValidDuration = "永久有效"
|
|
|
} else {
|
|
|
beginDate := time.Now()
|