fix:算法请求调整

This commit is contained in:
momo
2023-10-10 17:25:51 +08:00
parent fec42ad634
commit ba40f63b42
2 changed files with 8 additions and 8 deletions

View File

@@ -1197,8 +1197,8 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe
IsHighlyCustomized: *shoppingCart.IsHighlyCustomized,
RenderImage: shoppingCartSnapshot.RenderImage,
CartId: shoppingCart.Id,
ExpectedDeliveryTime: expectedDeliveryTime,
ActualDeliveryTime: actualDeliveryTime,
ExpectedDeliveryTime: &expectedDeliveryTime,
ActualDeliveryTime: &actualDeliveryTime,
}
orderProductList = append(orderProductList, &productInter)
shoppingProductSnapshotList = append(shoppingProductSnapshotList, shoppingCart.ShoppingCartProduct)
@@ -1278,8 +1278,8 @@ func (d *defaultOrder) Create(ctx context.Context, in *CreateReq) (res *CreateRe
byteShoppingProductSnapshot, _ := json.Marshal(shoppingProductSnapshotList)
byteStatusLink, _ := json.Marshal(statusLink)
byteOrderMetadata, _ := json.Marshal(gmodel.OrderMetadata{
ExpectedDeliveryTime: expectedDeliveryTime,
ActualDeliveryTime: actualDeliveryTime,
ExpectedDeliveryTime: &expectedDeliveryTime,
ActualDeliveryTime: &actualDeliveryTime,
})
// 创建订单