Commit 680ba3e5 by mushishixian

专营的美金活动家不显示问题

parent 3e78cde9
Showing with 1 additions and 0 deletions
...@@ -207,6 +207,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku { ...@@ -207,6 +207,7 @@ func (ls *LyService) GetCoefficientAndPrice(sku model.LySku) model.LySku {
if (sku.GoodsType == 1 || sku.GoodsType == 2) && sku.AcType > 1 && sku.Ratio > 0 { if (sku.GoodsType == 1 || sku.GoodsType == 2) && sku.AcType > 1 && sku.Ratio > 0 {
tempAcPrice := common.MyRound(price.PriceCn*(sku.Ratio/100), 4) tempAcPrice := common.MyRound(price.PriceCn*(sku.Ratio/100), 4)
data[key].PriceAc = tempAcPrice data[key].PriceAc = tempAcPrice
data[key].PriceAcUs = common.MyRound(price.PriceUs*(sku.RatioUs/100), 4)
//优惠价后等于0,就代表没有搞活动 //优惠价后等于0,就代表没有搞活动
if tempAcPrice <= 0 { if tempAcPrice <= 0 {
sku.AcType = 0 sku.AcType = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment