This commit is contained in:
邹宗楠
2025-12-17 16:48:55 +08:00
parent 4011fb0a73
commit 61a35f19c0
5 changed files with 84 additions and 23 deletions

View File

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