银豹到京西测试拉商品数

This commit is contained in:
苏尹岚
2020-04-29 14:33:27 +08:00
parent 68991b966e
commit bd0a82306f
2 changed files with 3 additions and 2 deletions

View File

@@ -950,6 +950,7 @@ func syncStoreSkusFromYb(ctx *jxcontext.Context, storeID, vendorID int, vendorSt
deleteList = append(deleteList, v)
}
}
fmt.Println("remoteSkuList", len(remoteSkuList))
// fmt.Println("addList", len(addList))
// fmt.Println("updateList", len(updateList))
// fmt.Println("deleteList", len(deleteList))

View File

@@ -403,12 +403,12 @@ func loopPages(parameterType, parameterValue string, skuNameList *[]*partner.Sku
return err
}
for _, v := range resultPages.Result {
resultp, err := api.YinBaoAPI.QueryProductImagesByBarcode(v.Barcode)
// resultp, err := api.YinBaoAPI.QueryProductImagesByBarcode(v.Barcode)
// resultp, err := getProductImages(vendorStoreID, v.Barcode)
if err != nil {
return err
}
// var resultp []*yinbaoapi.QueryProductImagesByBarcodeResult
var resultp []*yinbaoapi.QueryProductImagesByBarcodeResult
vv := &yinbaoapi.QueryProductByBarcodeResult{}
err = utils.Map2StructByJson(utils.Struct2MapByJson(v), vv, false)
if skuName := vendorSku2Jx(vv, resultp); skuName != nil {