- CaculateSkuPrice don't calculate when skuname unit is not 份.

This commit is contained in:
gazebo
2018-10-05 12:41:38 +08:00
parent 2f4da59d35
commit 923b7617f8
2 changed files with 13 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ func IntMap2List(intMap map[int]int) []int {
// 计算SKU价格unitPrice为一斤的单价specQuality为质量单位为克
func CaculateSkuPrice(unitPrice int, specQuality float32, specUnit string, skuNameUnit string) int {
if skuNameUnit == "份" {
if skuNameUnit != "份" {
return unitPrice
}
if strings.ToLower(specUnit) == "kg" {