1
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"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)
|
var a = New("7136048270014416392", "c397aa9f-3927-47c4-8cfe-4d84e02602e0", token)
|
||||||
|
|
||||||
// 查询售后单详情
|
// 查询售后单详情
|
||||||
|
|||||||
@@ -58,32 +58,30 @@ func TestAPI_CreateTradeLimitTemplate(t *testing.T) {
|
|||||||
ProductCity: 440300,
|
ProductCity: 440300,
|
||||||
CalculateType: 2,
|
CalculateType: 2,
|
||||||
TransferType: 1, // 快递方式-1.快递 目前仅支持1
|
TransferType: 1, // 快递方式-1.快递 目前仅支持1
|
||||||
RuleType: 2, // 模板类型-0:阶梯计价 1:固定运费 2:卖家包邮 3:货到付款
|
RuleType: 1, // 模板类型-0:阶梯计价 1:固定运费 2:卖家包邮 3:货到付款
|
||||||
FixedAmount: 0,
|
FixedAmount: 500,
|
||||||
},
|
},
|
||||||
Columns: []freightTemplate_create_request.ColumnsItem{
|
Columns: []freightTemplate_create_request.ColumnsItem{
|
||||||
{
|
{
|
||||||
FirstWeight: 0.0,
|
//FirstWeight: 0.0,
|
||||||
FirstWeightPrice: 0.0,
|
//FirstWeightPrice: 0.0,
|
||||||
FirstNum: 1,
|
//FirstNum: 1,
|
||||||
FirstNumPrice: 1,
|
//FirstNumPrice: 1,
|
||||||
AddNum: 1,
|
//AddNum: 1,
|
||||||
AddNumPrice: 0.01,
|
//AddNumPrice: 0.01,
|
||||||
RuleAddress: "{\"440000\":{\"44\":{\"44\":[0]}}}",
|
RuleAddress: "{\"44\":{\"440300\":{\"440306\":nil}}}",
|
||||||
IsOverFree: true,
|
IsOverFree: true,
|
||||||
OverAmount: 0,
|
OverAmount: 5000,
|
||||||
ProvinceInfos: []freightTemplate_create_request.ProvinceInfosItem{
|
ProvinceInfos: []freightTemplate_create_request.ProvinceInfosItem{
|
||||||
{
|
{
|
||||||
Id: 440000,
|
Id: 44,
|
||||||
Children: []freightTemplate_create_request.ChildrenItem_4{
|
Children: []freightTemplate_create_request.ChildrenItem_4{
|
||||||
{
|
{
|
||||||
Id: 440300,
|
Id: 440300,
|
||||||
Children: []freightTemplate_create_request.ChildrenItem_5{
|
Children: []freightTemplate_create_request.ChildrenItem_5{
|
||||||
{
|
{
|
||||||
Id: 440306,
|
Id: 440306,
|
||||||
Children: []freightTemplate_create_request.ChildrenItem{
|
Children: nil,
|
||||||
{Id: 0},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user