From ba9335578b4caf68940457b2592856202aad5627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 22 Jan 2024 15:45:45 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/order_test.go | 2 +- platformapi/mtwmapi/shipping.go | 27 ++++++++++++++------------- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/platformapi/mtwmapi/order_test.go b/platformapi/mtwmapi/order_test.go index 0f837856..31236471 100644 --- a/platformapi/mtwmapi/order_test.go +++ b/platformapi/mtwmapi/order_test.go @@ -29,7 +29,7 @@ func getTimeFromTimestamp(timeStamp int64) time.Time { } func TestOrderGetOrderDetail(t *testing.T) { - result, err := api.OrderGetOrderDetail(1100830463015735279, false) + result, err := api.OrderGetOrderDetail(3800909491353265371, false) if err != nil { t.Fatal(err) } diff --git a/platformapi/mtwmapi/shipping.go b/platformapi/mtwmapi/shipping.go index 2770a509..55a98369 100644 --- a/platformapi/mtwmapi/shipping.go +++ b/platformapi/mtwmapi/shipping.go @@ -13,19 +13,20 @@ const ( ) const ( - PeiSongTypeSelf = "0000" // 商家自配 - PeiSongTypeQuHuo = "0002" // 趣活 - PeiSongTypeDada = "0016" // 达达 - PeiSongTypeE = "0033" // E代送 - PeiSongTypeMTZSJM = "1001" // 美团专送-加盟 - PeiSongTypeMTZSZJ = "1002" // 美团专送-自建 - PeiSongTypeMTZSPT = "1003" // 美团跑腿(原众包) - PeiSongTypeMTZSDL = "1004" // 美团专送-城市代理 - PeiSongTypeJiaoMa = "2001" // 角马 - PeiSongTypeKuaiDi = "2002" // 快送 - PeiSongTypeWholeCity = "2010" // 全城送 - PeiSongTypeMixed = "3001" // 混合送(即美团专送+快送) - PeiSongTypeQiKe = "4015" // 企客远距离配送 + PeiSongTypeSelf = "0000" // 商家自配 + PeiSongTypeQuHuo = "0002" // 趣活 + PeiSongTypeDada = "0016" // 达达 + PeiSongTypeE = "0033" // E代送 + PeiSongTypeMTZSJM = "1001" // 美团专送-加盟 + PeiSongTypeMTZSZJ = "1002" // 美团专送-自建 + PeiSongTypeMTZSPT = "1003" // 美团跑腿(原众包) + PeiSongTypeMTZSDL = "1004" // 美团专送-城市代理 + PeiSongTypeJiaoMa = "2001" // 角马 + PeiSongTypeKuaiDi = "2002" // 快送 + PeiSongTypeWholeCity = "2010" // 全城送 + PeiSongTypeMixed = "3001" // 混合送(即美团专送+快送) + PeiSongTypeQiKe = "4015" // 企客远距离配送 + PeiSongTypeMixedExpressQiKe = "30012002" // 混合快送 ) func (a *API) ShippingSave(poiCode string, area string, minPrice, shippingFee float32) (err error) {