feat CalculateProviderPrice 添加originalPrice
This commit is contained in:
parent
0222ab4539
commit
716b08f775
@ -7,6 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]float64) (p v2.ProviderPrice) {
|
||||
p.OriginalPrice = env["originalPrice"]
|
||||
var calculateStrings = make([]string, 0, len(calculates))
|
||||
for _, c := range calculates {
|
||||
process, price := c.Run(env)
|
||||
@ -23,6 +24,7 @@ func CalculateProviderPrice(calculates []v2.CalculateProcess, env map[string]flo
|
||||
}
|
||||
|
||||
func CalculateSellerPrice(calculates []v2.CalculateProcess, env map[string]float64) (p v2.SellerPrice) {
|
||||
p.OriginalPrice = env["originalPrice"]
|
||||
var calculateStrings = make([]string, 0, len(calculates))
|
||||
for _, c := range calculates {
|
||||
process, price := c.Run(env)
|
||||
|
Loading…
Reference in New Issue
Block a user