aa
This commit is contained in:
@@ -4,6 +4,7 @@ import (
|
||||
"crypto/md5"
|
||||
"errors"
|
||||
"fmt"
|
||||
beego "github.com/astaxie/beego/server/web"
|
||||
"math"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -1824,7 +1825,13 @@ func RefreshOrderSkuInfo(ctx *jxcontext.Context, vendorOrderID string, vendorID,
|
||||
}
|
||||
storeSku := storeSkus[0]
|
||||
//if v.ShopPrice == v.EarningPrice {
|
||||
v.EarningPrice = int64(math.Round(float64(storeSku.Price) * float64(order.OrderPayPercentage) / 100))
|
||||
if beego.BConfig.RunMode == "jxgy" {
|
||||
if v.SalePrice > v.ShopPrice {
|
||||
v.EarningPrice = int64(math.Round(float64(storeSku.Price) * float64(order.OrderPayPercentage) / 100))
|
||||
}
|
||||
} else {
|
||||
v.EarningPrice = int64(math.Round(float64(storeSku.Price) * float64(order.OrderPayPercentage) / 100))
|
||||
}
|
||||
//}
|
||||
v.ShopPrice = int64(storeSku.Price)
|
||||
dao.UpdateEntity(db, v, "ShopPrice", "EarningPrice")
|
||||
|
||||
Reference in New Issue
Block a user