1
This commit is contained in:
@@ -291,7 +291,6 @@ 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("foodDataList :%s", utils.Format4Output(foodDataList, false))
|
||||
result, err := a.AccessAPI2("retail/batchinitdata", false, map[string]interface{}{
|
||||
KeyAppPoiCode: poiCode,
|
||||
"food_data": string(utils.MustMarshal(foodDataList)),
|
||||
@@ -300,7 +299,7 @@ func (a *API) RetailBatchInitData(trackInfo, poiCode string, foodDataList []map[
|
||||
failedFoodList, err = handleRetailBatchResult(result)
|
||||
}
|
||||
globals.SugarLogger.Debugf("result :%s", utils.Format4Output(result, false))
|
||||
globals.SugarLogger.Debugf("err :%s", utils.Format4Output(err, false))
|
||||
globals.SugarLogger.Debugf("err :%v", err)
|
||||
|
||||
return failedFoodList, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user