新增小程序扫码建商品

This commit is contained in:
苏尹岚
2020-04-01 15:55:52 +08:00
parent 5ac8150746
commit 44a747d03f
2 changed files with 4 additions and 3 deletions

View File

@@ -1390,10 +1390,11 @@ func GetJdUpcCodeByName(ctx *jxcontext.Context, name, upcCode string) (productIn
return retVal, err
}
for _, v := range productInfo {
_, name, _, specUnit, _, specQuality := jxutils.SplitSkuName(v.OriginalName)
_, name, _, specUnit, unit, specQuality := jxutils.SplitSkuName(v.OriginalName)
v.Name = name
v.SpecQuality = specQuality
v.SpecUnit = specUnit
v.Unit = unit
}
retVal = productInfo
return retVal, err