diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index 673d02b7..ec676df0 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -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)), diff --git a/platformapi/tao_vegetable/api_model.go b/platformapi/tao_vegetable/api_model.go index a44ceb9b..52f824af 100644 --- a/platformapi/tao_vegetable/api_model.go +++ b/platformapi/tao_vegetable/api_model.go @@ -62,3 +62,19 @@ func CallBackResultSign(err error) *CallBackResult { ErrMsg: err.Error(), } } + +// CallBackResultOnSaleCancel 售中取消允许开关 +func CallBackResultOnSaleCancel(err error) *CallBackResult { + if err == nil { + return &CallBackResult{ + Success: true, + ErrCode: "SUCCESS", + ErrMsg: "成功", + } + } + return &CallBackResult{ + Success: false, + ErrCode: "NOT_SUPPORT_INSALE_CANCEL", + ErrMsg: "不支持售中取消。", + } +}