This commit is contained in:
苏尹岚
2020-11-04 14:35:47 +08:00
parent 5dd90ba32c
commit 4c53a868c6

View File

@@ -4366,6 +4366,9 @@ func CreateSkusAndFocusFromWx(ctx *jxcontext.Context, productInfo *jdapi.Product
return err
}
if len(skuNames) == 0 {
if productInfo.Name == "" {
productInfo.Name = productInfo.OriginalName
}
skuNames2, err := dao.GetSkuNames(db, nil, nil, productInfo.Name, false)
if err != nil {
return err