新订单短信提醒fakeprice乘除
This commit is contained in:
@@ -1333,7 +1333,7 @@ func setFakeActualPayPrice(order *model.GoodsOrder) (newOrder *model.GoodsOrder)
|
||||
storeDetail, err := dao.GetStoreDetail(dao.GetDB(), order.JxStoreID, order.VendorID)
|
||||
if err == nil {
|
||||
if storeDetail.PayPercentage < 50 {
|
||||
orderCopy.ActualPayPrice = order.TotalShopMoney * (100 - int64(storeDetail.PayPercentage/2)) * 100
|
||||
orderCopy.ActualPayPrice = order.TotalShopMoney * (100 - int64(storeDetail.PayPercentage/2)) / 100
|
||||
} else {
|
||||
orderCopy.ActualPayPrice = order.EarningPrice
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user