This commit is contained in:
邹宗楠
2025-05-14 11:54:08 +08:00
parent 2ccbeb29e4
commit 48cf3c5a85
3 changed files with 10 additions and 3 deletions

View File

@@ -291,10 +291,14 @@ 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) {
_, err = a.AccessAPI2("retail/initdata", false, utils.MergeMaps(map[string]interface{}{
result, err := a.AccessAPI2("retail/initdata", false, utils.MergeMaps(map[string]interface{}{
KeyAppPoiCode: poiCode,
KeyAppFoodCode: foodCode,
}, params), resultKeyData, trackInfo)
if foodCode == "29351" {
globals.SugarLogger.Debugf("--------result := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("--------result err:= %v", err)
}
return err
}