From 32ed7d2f11e8553697ae90901fa9afb94fbc23da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 9 Nov 2020 15:29:05 +0800 Subject: [PATCH] gy --- business/jxcallback/orderman/orderman_ext.go | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 879a28dcf..b2954410f 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -705,12 +705,8 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID } saleInfoMap[index] = saleInfo } - if beego.BConfig.RunMode == "prod" { - if v.EarningType == model.EarningTypeQuote { - saleInfo.RealEarningPrice += v.ShopPrice * int64(v.Count) - } - } else { - saleInfo.RealEarningPrice += v.NewEarningPrice + if v.EarningType == model.EarningTypeQuote { + saleInfo.RealEarningPrice += v.ShopPrice * int64(v.Count) } saleInfo.ShopPrice += v.ShopPrice * int64(v.Count) saleInfo.VendorPrice += v.VendorPrice * int64(v.Count) @@ -719,22 +715,14 @@ func (c *OrderManager) GetStoresOrderSaleInfoNew(ctx *jxcontext.Context, storeID if v.VendorOrderID == flagVendorOrderID { if k == 0 { saleInfo.EarningPrice = v.NewEarningPrice - if beego.BConfig.RunMode == "prod" { - if v.EarningType == model.EarningTypePoints { - saleInfo.RealEarningPrice += v.NewEarningPrice - } - } else { + if v.EarningType == model.EarningTypePoints { saleInfo.RealEarningPrice += v.NewEarningPrice } } } else { flagVendorOrderID = v.VendorOrderID saleInfo.EarningPrice += v.NewEarningPrice - if beego.BConfig.RunMode == "prod" { - if v.EarningType == model.EarningTypePoints { - saleInfo.RealEarningPrice += v.NewEarningPrice - } - } else { + if v.EarningType == model.EarningTypePoints { saleInfo.RealEarningPrice += v.NewEarningPrice } }