银豹拉取标品修改
This commit is contained in:
@@ -4092,7 +4092,8 @@ func CreateSkusAndFocusFromYb(ctx *jxcontext.Context, isAsync, isContinueWhenErr
|
||||
//表示我们商品库中没有这个upc商品,如果有就直接关注上
|
||||
if len(skuNames) == 0 {
|
||||
//我们商品库中有这个商品,但是upc没有填,则尝试用upc去查一下
|
||||
productInfos, err := GetJdUpcCodeByName(ctx, "", v.YbBarCode)
|
||||
productInfos, err2 := GetJdUpcCodeByName(ctx, "", v.YbBarCode)
|
||||
err = err2
|
||||
//表示用upc也没有找到这个商品,则再尝试用银豹上的名字去查
|
||||
if len(productInfos) == 0 {
|
||||
skuNames2, err := dao.GetSkuNames(db, nil, nil, v.Name)
|
||||
|
||||
Reference in New Issue
Block a user