银豹到京西测试拉商品数
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user