银豹到京西测试拉商品数

This commit is contained in:
苏尹岚
2020-04-29 14:39:33 +08:00
parent bd0a82306f
commit 0589f6a947
2 changed files with 28 additions and 16 deletions

View File

@@ -124,6 +124,18 @@ func (p *PurchaseHandler) GetStoreSkusFullInfo(ctx *jxcontext.Context, parentTas
}
}
} else {
for _, v := range result.Result {
resultp, err := api.YinBaoAPI.QueryProductImagesByBarcode(v.Barcode)
// resultp, err := getProductImages(vendorStoreID, v.Barcode)
if err != nil {
return nil, err
}
vv := &yinbaoapi.QueryProductByBarcodeResult{}
err = utils.Map2StructByJson(utils.Struct2MapByJson(v), vv, false)
if skuName := vendorSku2Jx(vv, resultp); skuName != nil {
skuNameList = append(skuNameList, skuName)
}
}
loopPages(result.PostBackParameter.ParameterType, result.PostBackParameter.ParameterValue, &skuNameList, vendorStoreID)
}
}