1
This commit is contained in:
@@ -242,9 +242,9 @@ func CreateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64,
|
||||
outJxOrder.OrderID = utils.Str2Int64(vendorOrderID)
|
||||
return outJxOrder, err
|
||||
}
|
||||
//if outJxOrder.TotalPrice != jxOrder.TotalPrice && jxOrder.IsPriceDefend != model.YES {
|
||||
// return nil, fmt.Errorf("商品或配送信息发生改变,请重新下单")
|
||||
//}
|
||||
if outJxOrder.TotalPrice != jxOrder.TotalPrice && jxOrder.IsPriceDefend != model.YES {
|
||||
return nil, fmt.Errorf("商品或配送信息发生改变,请重新下单")
|
||||
}
|
||||
if jxOrder.IsPriceDefend == model.YES {
|
||||
outJxOrder.OrderID = jxOrder.OrderID
|
||||
} else {
|
||||
@@ -1005,6 +1005,8 @@ func generateOrder(ctx *jxcontext.Context, jxOrder *JxOrderInfo, addressID int64
|
||||
discountPrice, err := cms.GetStoreVendorMaps(ctx, nil, jxOrder.StoreID, -1)
|
||||
if len(discountPrice) == 1 && outJxOrder.OrderPrice >= int64(discountPrice[0].DeliveryFeeDeductionSill) {
|
||||
outJxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
||||
jxOrder.FreightPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
||||
jxOrder.TotalPrice -= int64(discountPrice[0].DeliveryFeeDeductionFee)
|
||||
}
|
||||
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user