fix:算法请求调整
This commit is contained in:
parent
5e9c1df5da
commit
a8df57808f
|
@ -1526,6 +1526,12 @@ func (d *defaultOrder) OrderDetailHandler(ctx context.Context, orderInfo *gmodel
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var expectedDeliveryTime time.Time
|
||||||
|
if productValue.ExpectedDeliveryTime == nil {
|
||||||
|
expectedDeliveryTime = expectedTime
|
||||||
|
} else {
|
||||||
|
expectedDeliveryTime = productValue.ExpectedDeliveryTime.Current
|
||||||
|
}
|
||||||
|
|
||||||
orderProductItem := gmodel.OrderProduct{
|
orderProductItem := gmodel.OrderProduct{
|
||||||
TotalPrice: order.GetAmountInfoFormat(&productValue.TotalPrice),
|
TotalPrice: order.GetAmountInfoFormat(&productValue.TotalPrice),
|
||||||
|
@ -1537,7 +1543,7 @@ func (d *defaultOrder) OrderDetailHandler(ctx context.Context, orderInfo *gmodel
|
||||||
ProductCover: productValue.ProductCover,
|
ProductCover: productValue.ProductCover,
|
||||||
ProductCoverMetadata: productValue.ProductCoverMetadata,
|
ProductCoverMetadata: productValue.ProductCoverMetadata,
|
||||||
ShoppingCartSnapshot: &shoppingCartSnapshotData,
|
ShoppingCartSnapshot: &shoppingCartSnapshotData,
|
||||||
ExpectedDeliveryTime: &productValue.ExpectedDeliveryTime.Current,
|
ExpectedDeliveryTime: &expectedDeliveryTime,
|
||||||
PurchaseQuantity: *productValue.PurchaseQuantity,
|
PurchaseQuantity: *productValue.PurchaseQuantity,
|
||||||
|
|
||||||
DiyInformation: productValue.DiyInformation,
|
DiyInformation: productValue.DiyInformation,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user