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) {
|
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{}{
|
result, err := a.AccessAPI2("retail/batchinitdata", false, map[string]interface{}{
|
||||||
KeyAppPoiCode: poiCode,
|
KeyAppPoiCode: poiCode,
|
||||||
"food_data": string(utils.MustMarshal(foodDataList)),
|
"food_data": string(utils.MustMarshal(foodDataList)),
|
||||||
|
|||||||
@@ -62,3 +62,19 @@ func CallBackResultSign(err error) *CallBackResult {
|
|||||||
ErrMsg: err.Error(),
|
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: "不支持售中取消。",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user