+ mtwmapi.ErrCodeCanNotModifyStoreDeliveryInfo
This commit is contained in:
@@ -44,11 +44,12 @@ const (
|
|||||||
ErrCodeSysErr = 700 // 系统错误,按美团外卖技术支持的说法,可当成需重试的错误
|
ErrCodeSysErr = 700 // 系统错误,按美团外卖技术支持的说法,可当成需重试的错误
|
||||||
ErrCodeAccessLimited = 711 // 接口调用过于频繁,触发流控,请降低调用频率
|
ErrCodeAccessLimited = 711 // 接口调用过于频繁,触发流控,请降低调用频率
|
||||||
|
|
||||||
ErrCodeNoAppFood = 805 // 不存在此菜品
|
ErrCodeNoAppFood = 805 // 不存在此菜品
|
||||||
ErrCodeNoSuchOrder = 806 // 不存在此订单
|
ErrCodeNoSuchOrder = 806 // 不存在此订单
|
||||||
ErrCodeOpFailed = 808 // 操作失败(如订单在操作时,状态已变更等情况)
|
ErrCodeOpFailed = 808 // 操作失败(如订单在操作时,状态已变更等情况)
|
||||||
ErrCodeSkuCategoryNotExist = 1021 // 菜品分类不存在
|
ErrCodeSkuCategoryNotExist = 1021 // 菜品分类不存在
|
||||||
ErrCodeSkuCategoryExist = 1037 // 菜品分类已存在
|
ErrCodeSkuCategoryExist = 1037 // 菜品分类已存在
|
||||||
|
ErrCodeCanNotModifyStoreDeliveryInfo = 3018 // 商家已接入美团配送,不可修改门店配送相关信息
|
||||||
)
|
)
|
||||||
|
|
||||||
type API struct {
|
type API struct {
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ type PoiInfo struct {
|
|||||||
Utime int64 `json:"utime,omitempt"`
|
Utime int64 `json:"utime,omitempt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// todo 此函数在open_level与is_online开店,由于一些原因并没有成功时,好像并不会报错
|
||||||
|
// 经常会奇怪的报错:商家已接入美团配送,不可修改门店配送相关信息,但实际并没有修改任何与配送相关的东西
|
||||||
|
// 参见:https://developer.waimai.meituan.com/home/myquestionDetail/6194
|
||||||
func (a *API) PoiSave(poiCode string, poiParams map[string]interface{}) (err error) {
|
func (a *API) PoiSave(poiCode string, poiParams map[string]interface{}) (err error) {
|
||||||
_, err = a.AccessAPI("poi/save", false, utils.MergeMaps(utils.Params2Map(KeyAppPoiCode, poiCode), poiParams))
|
_, err = a.AccessAPI("poi/save", false, utils.MergeMaps(utils.Params2Map(KeyAppPoiCode, poiCode), poiParams))
|
||||||
return err
|
return err
|
||||||
|
|||||||
Reference in New Issue
Block a user