From 5c73c5f96cd4a327c499580d9ac6d4f49e7ad15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 4 Mar 2022 09:39:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BE=8E=E5=9B=A2=E9=85=8D?= =?UTF-8?q?=E9=80=81=E8=B4=B9,=E8=8E=B7=E5=8F=96=E7=BE=8E=E5=9B=A2?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=85=8D=E9=80=81=E4=BB=B7=E6=A0=BC=E5=AD=98?= =?UTF-8?q?=E5=85=A5=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/mtpsapi/mtpsapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformapi/mtpsapi/mtpsapi.go b/platformapi/mtpsapi/mtpsapi.go index c7861b0d..4f525ebc 100644 --- a/platformapi/mtpsapi/mtpsapi.go +++ b/platformapi/mtpsapi/mtpsapi.go @@ -294,7 +294,7 @@ func (a *API) result2OrderResponse(result *ResponseResult) (order *OrderResponse order.MtPeisongID = result.Data["mt_peisong_id"].(string) order.DeliveryID = utils.MustInterface2Int64(result.Data["delivery_id"]) order.OrderID = result.Data["order_id"].(string) - order.DeliveryFee = utils.MustInterface2Float64(result.Data["delivery_fee"]) + order.DeliveryFee = result.Data["delivery_fee"].(float64) return order } @@ -314,7 +314,7 @@ func (a *API) CreateOrderByShop(basicParams *CreateOrderByShopParam, addParams m } } -// 获取美团订单费用 +// 创建订单 func (a *API) CreateOrderByShop2(basicParams *CreateOrderByShopParam) (order *OrderResponse, err error) { params := utils.Struct2MapByJson(basicParams) if basicParams.OrderType != OrderTypeBook {