- 修复两个美团外美API的bug

This commit is contained in:
gazebo
2019-04-30 10:02:47 +08:00
parent 0a0a4bb977
commit bad469db9e
2 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ func (a *API) OrderRefundReject(orderID int64, reason string) (err error) {
}
func (a *API) OrderApplyPartRefund(orderID int64, reason string, removeSkuList []*RefundSku) (err error) {
_, err = a.AccessAPI("order/applyPartRefund", true, map[string]interface{}{
_, err = a.AccessAPI("order/applyPartRefund", false, map[string]interface{}{
KeyOrderID: orderID,
"reason": reason,
"food_data": removeSkuList,

View File

@@ -137,11 +137,11 @@ func (a *API) RetailSkuSave(poiCode, foodCode string, standardSkus, unstandardSk
return err
}
func (a *API) RetailSkuSellStatus(poiCode string, foodData []map[string]interface{}, status int) (err error) {
func (a *API) RetailSkuSellStatus(poiCode string, foodData []map[string]interface{}, sellStatus int) (err error) {
_, err = a.AccessAPI("retail/sku/sellStatus", false, map[string]interface{}{
KeyAppPoiCode: poiCode,
"food_data": foodData,
"status": status,
"sell_status": sellStatus,
})
return err
}