diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index b9b6c4403..695479ac0 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1672,7 +1672,7 @@ func GetJdUpcCodeByName(ctx *jxcontext.Context, name, upcCode string) (productIn v.Unit = unit } //productInfos, err = GetJdUpcCodeByCode(ctx, upcCode) - if len(productInfos) == 0 { + if len(productInfo) == 0 { if configs, err := dao.QueryConfigs(dao.GetDB(), "mtwmCookieStr", model.ConfigTypeCookie, ""); err == nil { api.MtwmAPI.SetCookieWithStr(configs[0].Value) }