银豹api修改商品价格测试
This commit is contained in:
@@ -101,7 +101,17 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr
|
||||
|
||||
func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, storeSkuList []*partner.StoreSkuInfo) (failedList []*partner.StoreSkuInfoWithErr, err error) {
|
||||
if globals.EnableYbStoreWrite {
|
||||
fmt.Println("test11")
|
||||
buildYbConfigs(storeID)
|
||||
for _, v := range storeSkuList {
|
||||
var productInfo = &yinbaoapi.ProductInfo{
|
||||
UID: utils.Str2Int64(v.VendorSkuID),
|
||||
SellPrice: utils.Float64ToPointer(jxutils.IntPrice2Standard(v.VendorPrice)),
|
||||
}
|
||||
err = api.YinBaoAPI.UpdateProductInfo(productInfo)
|
||||
if err != nil {
|
||||
failedList = putils.GetErrMsg2FailedSingleList(storeSkuList, err, storeID, model.VendorChineseNames[model.VendorIDYB], "更新商品价格")
|
||||
}
|
||||
}
|
||||
}
|
||||
return failedList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user