This commit is contained in:
邹宗楠
2023-12-22 18:31:34 +08:00
parent 912dde2eb6
commit 71599e3d74
12 changed files with 21 additions and 826 deletions

View File

@@ -297,10 +297,14 @@ func (a *API) RetailInitData(trackInfo, poiCode, foodCode string, params map[str
}
func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[string]interface{}) (failedFoodList []*AppFoodResult, err error) {
globals.SugarLogger.Debugf("=============result := %d", len(foodDataList))
result, err := a.AccessAPI2("retail/batchinitdata", false, map[string]interface{}{
KeyAppPoiCode: poiCode,
"food_data": string(utils.MustMarshal(foodDataList)),
}, resultKeyMsg, trackInfo)
globals.SugarLogger.Debugf("=============result := %s", utils.Format4Output(result, false))
globals.SugarLogger.Debugf("=============err := %v", err)
if err == nil {
failedFoodList, err = handleRetailBatchResult(result)
}