diff --git a/business/partner/purchase/ebai/order_afs.go b/business/partner/purchase/ebai/order_afs.go index 452358953..413ffb775 100644 --- a/business/partner/purchase/ebai/order_afs.go +++ b/business/partner/purchase/ebai/order_afs.go @@ -126,9 +126,9 @@ func (c *PurchaseHandler) onAfsOrderMsg(msg *ebaiapi.CallbackMsg) (retVal *ebaia var earningPrice int64 = 0 for _, v := range goodsOrder.Skus { if goodsOrder.EarningType == model.EarningTypeQuote { - earningPrice += v.ShopPrice + earningPrice += v.ShopPrice * int64(v.Count) } else { - earningPrice += v.SalePrice + earningPrice += v.SalePrice * int64(v.Count) } } goodsOrder.EarningPrice = earningPrice