This commit is contained in:
邹宗楠
2025-05-14 14:14:05 +08:00
parent 7f75b4c853
commit 69d1ed1796

View File

@@ -291,12 +291,10 @@ func handleRetailBatchResultByRegexp(result interface{}) (failedFoodList []*AppF
// https://developer.waimai.meituan.com/home/myquestionDetail/6716 // https://developer.waimai.meituan.com/home/myquestionDetail/6716
// 另外这个接口即使不指定operate_type为1也可能报错”商品spu名称在该店内分类中已存在“原因就是已经存在两个相同的SKU了 // 另外这个接口即使不指定operate_type为1也可能报错”商品spu名称在该店内分类中已存在“原因就是已经存在两个相同的SKU了
func (a *API) RetailInitData(trackInfo, poiCode, foodCode string, params map[string]interface{}) (err error) { func (a *API) RetailInitData(trackInfo, poiCode, foodCode string, params map[string]interface{}) (err error) {
result, err := a.AccessAPI2("retail/initdata", false, utils.MergeMaps(map[string]interface{}{ _, err = a.AccessAPI2("retail/initdata", false, utils.MergeMaps(map[string]interface{}{
KeyAppPoiCode: poiCode, KeyAppPoiCode: poiCode,
KeyAppFoodCode: foodCode, KeyAppFoodCode: foodCode,
}, params), resultKeyData, trackInfo) }, params), resultKeyData, trackInfo)
globals.SugarLogger.Debugf("--------result := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("--------result err:= %v", err)
return err return err
} }
@@ -310,8 +308,6 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[
if err == nil { if err == nil {
failedFoodList, err = handleRetailBatchResult(result) failedFoodList, err = handleRetailBatchResult(result)
} }
globals.SugarLogger.Debugf("--------result := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("--------result err:= %v", err)
return failedFoodList, err return failedFoodList, err
} }
@@ -337,6 +333,8 @@ func (a *API) RetailSkuPrice(trackInfo, poiCode string, foodData []*BareStoreFoo
if err == nil { if err == nil {
failedFoodList, err = handleRetailBatchResult(result) failedFoodList, err = handleRetailBatchResult(result)
} }
globals.SugarLogger.Debugf("--------result err:= %v", err)
globals.SugarLogger.Debugf("--------result result:= %v", utils.Format4Output(result, false))
return failedFoodList, err return failedFoodList, err
} }