From 8406663a29c4d6bbcfa8cda9c2c0186ea84b36f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 25 Oct 2022 09:48:32 +0800 Subject: [PATCH] 1 --- .../tiktok_shop/tiktok_api/afs_test.go | 2 +- .../tiktok_shop/tiktok_api/store_test.go | 30 +++++++++---------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/platformapi/tiktok_shop/tiktok_api/afs_test.go b/platformapi/tiktok_shop/tiktok_api/afs_test.go index 4c6f9bfb..12f31489 100644 --- a/platformapi/tiktok_shop/tiktok_api/afs_test.go +++ b/platformapi/tiktok_shop/tiktok_api/afs_test.go @@ -5,7 +5,7 @@ import ( "testing" ) -var token = `{"access_token":"c4afc5bc-7ddf-4244-b35a-0c393f3dca32","expires_in":1667203738,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西速食","refresh_token":"5a4f9dfe-306b-4bca-8b35-2ae9afc0245e","authority_id":""}` +var token = `{"access_token":"c4afc5bc-7ddf-4244-b35a-0c393f3dca32","expires_in":1667203717,"scope":"SCOPE","shop_id":57939570,"shop_name":"京西菜市速食","refresh_token":"5a4f9dfe-306b-4bca-8b35-2ae9afc0245e","authority_id":""}` var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token) // 查询售后单详情 diff --git a/platformapi/tiktok_shop/tiktok_api/store_test.go b/platformapi/tiktok_shop/tiktok_api/store_test.go index ad5b94e0..b19d5074 100644 --- a/platformapi/tiktok_shop/tiktok_api/store_test.go +++ b/platformapi/tiktok_shop/tiktok_api/store_test.go @@ -58,32 +58,30 @@ func TestAPI_CreateTradeLimitTemplate(t *testing.T) { ProductCity: 440300, CalculateType: 2, TransferType: 1, // 快递方式-1.快递 目前仅支持1 - RuleType: 2, // 模板类型-0:阶梯计价 1:固定运费 2:卖家包邮 3:货到付款 - FixedAmount: 0, + RuleType: 1, // 模板类型-0:阶梯计价 1:固定运费 2:卖家包邮 3:货到付款 + FixedAmount: 500, }, Columns: []freightTemplate_create_request.ColumnsItem{ { - FirstWeight: 0.0, - FirstWeightPrice: 0.0, - FirstNum: 1, - FirstNumPrice: 1, - AddNum: 1, - AddNumPrice: 0.01, - RuleAddress: "{\"440000\":{\"44\":{\"44\":[0]}}}", - IsOverFree: true, - OverAmount: 0, + //FirstWeight: 0.0, + //FirstWeightPrice: 0.0, + //FirstNum: 1, + //FirstNumPrice: 1, + //AddNum: 1, + //AddNumPrice: 0.01, + RuleAddress: "{\"44\":{\"440300\":{\"440306\":nil}}}", + IsOverFree: true, + OverAmount: 5000, ProvinceInfos: []freightTemplate_create_request.ProvinceInfosItem{ { - Id: 440000, + Id: 44, Children: []freightTemplate_create_request.ChildrenItem_4{ { Id: 440300, Children: []freightTemplate_create_request.ChildrenItem_5{ { - Id: 440306, - Children: []freightTemplate_create_request.ChildrenItem{ - {Id: 0}, - }, + Id: 440306, + Children: nil, }, }, },