From 7d7abf2678e9927297c05ad9bf064e9eab8cbd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 24 Jul 2024 15:27:21 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/callback.go | 1 + platformapi/mtwmapi/retail_test.go | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/platformapi/mtwmapi/callback.go b/platformapi/mtwmapi/callback.go index 89955176..afead9de 100644 --- a/platformapi/mtwmapi/callback.go +++ b/platformapi/mtwmapi/callback.go @@ -31,6 +31,7 @@ const ( MsgTypeOrderRefund = "orderRefund" // 订单退款(全额) MsgTypeOrderPartialRefund = "orderPartialRefund" // /订单部分退款 MsgTypeOrderFinishedPickup = "orderFinishedPickup" + MsgTypeOrderDeliveryFeeChange = "deliveryFeeChange" MsgTypeStoreStatusChanged = "storeStatusChanged" MsgTypeStoreAuditStatusChanged = "storeAuditStatusChanged" diff --git a/platformapi/mtwmapi/retail_test.go b/platformapi/mtwmapi/retail_test.go index 25262f12..f0e42949 100644 --- a/platformapi/mtwmapi/retail_test.go +++ b/platformapi/mtwmapi/retail_test.go @@ -189,13 +189,16 @@ func TestRetailListCase(t *testing.T) { } func TestRetailGet(t *testing.T) { - orderDetail, err := api.OrderGetOrderDetail(3800965811208602698, false) - t.Log(utils.Format4Output(orderDetail, false)) - result, err := api.RetailGet("16963213", "mtcode_1722809931159257157") - if err != nil { - t.Fatal(err) + orderDetail, _ := api.OrderGetOrderDetail(701174470752904572, false) + if addressFee, ok := orderDetail["address_change_fee"]; ok { + fmt.Println(addressFee) } - t.Log(utils.Format4Output(result, false)) + t.Log(utils.Format4Output(orderDetail, false)) + //result, err := api.RetailGet("16963213", "mtcode_1722809931159257157") + //if err != nil { + // t.Fatal(err) + //} + //t.Log(utils.Format4Output(result, false)) } func TestRetailGetSpTagIds(t *testing.T) {