mt price
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
@@ -487,10 +488,14 @@ type SpuData struct {
|
||||
// https://opendj.meituan.com/home/docDetail/821
|
||||
// 【代运营】批量更新商品进货价 /retail/purchase/price/update
|
||||
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,
|
||||
"spu_data": spuData,
|
||||
}, resultKeyMsg, trackInfo)
|
||||
globals.SugarLogger.Debugf("BatchSetRestockingPrice retVal=============%v", retVal)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user