新增小程序扫码建商品
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -4228,7 +4228,7 @@ func CreateSkusAndFocusFromWx(ctx *jxcontext.Context, productInfo *jdapi.Product
|
||||
IsSale: 1,
|
||||
}
|
||||
skuBindInfos = append(skuBindInfos, skuBindInfo)
|
||||
UpdateStoresSkusByBind(ctx, nil, skuBindInfos, false, true)
|
||||
UpdateStoresSkusByBind(ctx, nil, skuBindInfos, true, true)
|
||||
} else {
|
||||
skuNameExt := &model.SkuNameExt{
|
||||
SkuName: model.SkuName{
|
||||
@@ -4267,7 +4267,7 @@ func CreateSkusAndFocusFromWx(ctx *jxcontext.Context, productInfo *jdapi.Product
|
||||
IsSale: 1,
|
||||
}
|
||||
skuBindInfos = append(skuBindInfos, skuBindInfo)
|
||||
UpdateStoresSkusByBind(ctx, nil, skuBindInfos, false, true)
|
||||
UpdateStoresSkusByBind(ctx, nil, skuBindInfos, true, true)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user