From bad469db9ea8f21ccb0d4cf1e07fe7cf103e029d Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 30 Apr 2019 10:02:47 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E5=A4=96=E7=BE=8EAPI=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtwmapi/order.go | 2 +- platformapi/mtwmapi/retail.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platformapi/mtwmapi/order.go b/platformapi/mtwmapi/order.go index ed6ae628..c24d760b 100644 --- a/platformapi/mtwmapi/order.go +++ b/platformapi/mtwmapi/order.go @@ -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, diff --git a/platformapi/mtwmapi/retail.go b/platformapi/mtwmapi/retail.go index dd500381..0d046a12 100644 --- a/platformapi/mtwmapi/retail.go +++ b/platformapi/mtwmapi/retail.go @@ -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 }