From 1f3311490c661d624ae03cb259cb255fbbf3a782 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Mon, 26 Dec 2022 17:07:48 +0800 Subject: [PATCH] 1 --- .../request/superm_orderDispatcher_resuest.go | 8 ++++---- platformapi/tiktok_shop/tiktok_api/transport.go | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platformapi/tiktok_shop/sdk-golang/api/superm_orderDispatcher/request/superm_orderDispatcher_resuest.go b/platformapi/tiktok_shop/sdk-golang/api/superm_orderDispatcher/request/superm_orderDispatcher_resuest.go index ab06620a..924c4a08 100644 --- a/platformapi/tiktok_shop/sdk-golang/api/superm_orderDispatcher/request/superm_orderDispatcher_resuest.go +++ b/platformapi/tiktok_shop/sdk-golang/api/superm_orderDispatcher/request/superm_orderDispatcher_resuest.go @@ -12,7 +12,7 @@ type SupermOrderDispatcherRequest struct { } func (c *SupermOrderDispatcherRequest) GetUrlPath() string { - return "/superm/orderDispatcher" + return "/superm/shopOrderDispatcher" } func New() *SupermOrderDispatcherRequest { @@ -45,7 +45,7 @@ func (c *SupermOrderDispatcherRequest) GetParams() *SupermOrderDispatcherParam { } type SupermOrderDispatcherParam struct { - StoreID int64 `json:"storeID"` - ShopOrderID int64 `json:"shopOrderID"` - DispatcherType int32 `json:"dispatcherType"` + StoreID int64 `json:"store_id"` + ShopOrderID string `json:"shop_order_id"` + DispatcherType int32 `json:"dispatcher_type"` } diff --git a/platformapi/tiktok_shop/tiktok_api/transport.go b/platformapi/tiktok_shop/tiktok_api/transport.go index 5e4e5a8d..ddfae41e 100644 --- a/platformapi/tiktok_shop/tiktok_api/transport.go +++ b/platformapi/tiktok_shop/tiktok_api/transport.go @@ -36,8 +36,8 @@ func (a *API) GetDispatcherInfo(storeID int64, shopOrderID string, dispatcherFee return response.Data.DispatcherFee, nil } -// /superm/orderDispatcher 呼叫运力并发货/重新发货、取消运力 -func (a *API) OrderDispatcher(storeID, shopOrderID int64, dispatcherType int32) error { +// /superm/shopOrderDispatcher 呼叫运力并发货/重新发货、取消运力 +func (a *API) ShopOrderDispatcher(storeID int64, shopOrderID string, dispatcherType int32) error { request := superm_orderDispatcher_request.New() request.Param = &superm_orderDispatcher_request.SupermOrderDispatcherParam{ StoreID: storeID,