aa
This commit is contained in:
@@ -17,6 +17,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/astaxie/beego"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi"
|
"git.rosy.net.cn/baseapi/platformapi"
|
||||||
"git.rosy.net.cn/baseapi/utils"
|
"git.rosy.net.cn/baseapi/utils"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
@@ -503,11 +505,15 @@ func GetVendorName(vendorID int) (vendorName string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CaculateSkuEarningPrice(shopPrice, salePrice int64, storePayPercentage int) (earningPrice int64) {
|
func CaculateSkuEarningPrice(shopPrice, salePrice int64, storePayPercentage int) (earningPrice int64) {
|
||||||
earningPrice = salePrice
|
if beego.BConfig.RunMode == "jxgy" {
|
||||||
if salePrice != 0 {
|
earningPrice = salePrice
|
||||||
if shopPrice > 0 && shopPrice < earningPrice {
|
if salePrice != 0 {
|
||||||
earningPrice = shopPrice
|
if shopPrice > 0 && shopPrice < earningPrice {
|
||||||
|
earningPrice = shopPrice
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
earningPrice = shopPrice
|
||||||
}
|
}
|
||||||
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
|
storePayPercentage = ConstrainPayPercentage(storePayPercentage)
|
||||||
if storePayPercentage <= 0 {
|
if storePayPercentage <= 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user