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) {