mt price
This commit is contained in:
@@ -489,14 +489,15 @@ type SpuData struct {
|
||||
// 【代运营】批量更新商品进货价 /retail/purchase/price/update
|
||||
func (a *API) BatchSetRestockingPrice(trackInfo, appPoiCode string, spuData []*SpuData) error {
|
||||
if len(spuData) > 0 {
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice params======%s %s %s", spuData[0].PurchasePrice, spuData[0].AppSpuCode, spuData[0].SkuID)
|
||||
for _, v := range spuData {
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice params======%s %s %s", v.PurchasePrice, v.AppSpuCode, v.SkuID)
|
||||
}
|
||||
}
|
||||
retVal, err := a.AccessAPI2("/retail/purchase/price/update", false, map[string]interface{}{
|
||||
KeyAppPoiCode: appPoiCode,
|
||||
"spu_data": spuData,
|
||||
}, resultKeyMsg, trackInfo)
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice retVal=============%v", retVal)
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice err===========%v", err)
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice retVal====%v err===========%v", retVal, err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user