From 4fa0ec369661d53b0c5fa73003609e2c782bd36d Mon Sep 17 00:00:00 2001 From: richboo111 Date: Thu, 17 Nov 2022 09:46:53 +0800 Subject: [PATCH] mt price --- platformapi/mtwmapi/retail.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index 7df7303d..e30e3cdb 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -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 }