- sku comment

This commit is contained in:
gazebo
2018-10-25 16:18:57 +08:00
parent 135938cfa9
commit fc42291b08
2 changed files with 2 additions and 2 deletions

View File

@@ -154,7 +154,7 @@ func IsFakeID(id int64) bool {
return true
}
multiple := id / genFakeID1()
return multiple == 2 || multiple == 3 || multiple == 4
return multiple >= 2 && multiple <= 4
}
func FormalizePageSize(pageSize int) int {

View File

@@ -139,7 +139,7 @@ func (p *PurchaseHandler) cuSku(db *dao.DaoDB, sku *model.Sku, handler func(skuE
}
}
if err == nil {
skuName := jxutils.ComposeSkuName(skuInfoExt.Prefix, skuInfoExt.Name, skuInfoExt.Comment, skuInfoExt.Unit, sku.SpecQuality, sku.SpecUnit, 0)
skuName := jxutils.ComposeSkuName(skuInfoExt.Prefix, skuInfoExt.Name, sku.Comment, skuInfoExt.Unit, sku.SpecQuality, sku.SpecUnit, 0)
skuPrice := jxutils.CaculateSkuPrice(skuInfoExt.Price, sku.SpecQuality, sku.SpecUnit, skuInfoExt.Unit)
result, err2 := handler(&skuInfoExt, skuPrice, skuName, shopCategories, addParams)
if err = err2; err == nil {