1
This commit is contained in:
@@ -786,7 +786,7 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
if v.ShopPrice == 0 {
|
if v.ShopPrice == 0 {
|
||||||
v.ShopPrice = v.SalePrice * 70 / 100
|
v.ShopPrice = v.SalePrice * 60 / 100
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO 客户端当前逻辑认为SkuID为0为赠品
|
// TODO 客户端当前逻辑认为SkuID为0为赠品
|
||||||
@@ -804,12 +804,12 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
|
|||||||
if len(storeSkus) > 0 {
|
if len(storeSkus) > 0 {
|
||||||
v.ShopPrice = int64(storeSkus[0].Price)
|
v.ShopPrice = int64(storeSkus[0].Price)
|
||||||
} else {
|
} else {
|
||||||
v.ShopPrice = v.SalePrice * 70 / 100
|
v.ShopPrice = v.SalePrice * 60 / 100
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
v.ShopPrice = int64(skuBindInfo.Price)
|
v.ShopPrice = int64(skuBindInfo.Price)
|
||||||
if v.ShopPrice == 0 {
|
if v.ShopPrice == 0 {
|
||||||
v.ShopPrice = v.SalePrice * 70 / 100
|
v.ShopPrice = v.SalePrice * 60 / 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
v.SkuName = jxutils.ComposeSkuNameOriginal(skuBindInfo.Prefix, skuBindInfo.Name, skuBindInfo.Comment, skuBindInfo.Unit, skuBindInfo.SpecQuality, skuBindInfo.SpecUnit, 0)
|
v.SkuName = jxutils.ComposeSkuNameOriginal(skuBindInfo.Prefix, skuBindInfo.Name, skuBindInfo.Comment, skuBindInfo.Unit, skuBindInfo.SpecQuality, skuBindInfo.SpecUnit, 0)
|
||||||
@@ -2350,7 +2350,7 @@ func result2Orders(ctx *jxcontext.Context, result *jdshopapi.AllOrdersResult) (o
|
|||||||
shopPriceSum += storeSkuList[0].Price * sku.Count
|
shopPriceSum += storeSkuList[0].Price * sku.Count
|
||||||
sku.ShopPrice = int64(storeSkuList[0].Price)
|
sku.ShopPrice = int64(storeSkuList[0].Price)
|
||||||
} else {
|
} else {
|
||||||
shopPriceSum += int(sku.SalePrice) * 70 / 100
|
shopPriceSum += int(sku.SalePrice) * 60 / 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
if order.EarningType == model.EarningTypeQuote && shopPriceSum+700 > int(order.TotalShopMoney) {
|
||||||
|
|||||||
Reference in New Issue
Block a user