mt price
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package mtwmapi
|
package mtwmapi
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
@@ -487,10 +488,14 @@ type SpuData struct {
|
|||||||
// https://opendj.meituan.com/home/docDetail/821
|
// https://opendj.meituan.com/home/docDetail/821
|
||||||
// 【代运营】批量更新商品进货价 /retail/purchase/price/update
|
// 【代运营】批量更新商品进货价 /retail/purchase/price/update
|
||||||
func (a *API) BatchSetRestockingPrice(trackInfo, appPoiCode string, spuData []*SpuData) error {
|
func (a *API) BatchSetRestockingPrice(trackInfo, appPoiCode string, spuData []*SpuData) error {
|
||||||
_, err := a.AccessAPI2("/retail/purchase/price/update", false, map[string]interface{}{
|
if len(spuData) > 0 {
|
||||||
|
globals.SugarLogger.Debugf("BatchSetRestockingPrice params======%s %s %s", spuData[0].PurchasePrice, spuData[0].AppSpuCode, spuData[0].SkuID)
|
||||||
|
}
|
||||||
|
retVal, err := a.AccessAPI2("/retail/purchase/price/update", false, map[string]interface{}{
|
||||||
KeyAppPoiCode: appPoiCode,
|
KeyAppPoiCode: appPoiCode,
|
||||||
"spu_data": spuData,
|
"spu_data": spuData,
|
||||||
}, resultKeyMsg, trackInfo)
|
}, resultKeyMsg, trackInfo)
|
||||||
|
globals.SugarLogger.Debugf("BatchSetRestockingPrice retVal=============%v", retVal)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user