1
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
||||
//var token1 = `{"access_token":"9a315a03-c737-4a82-ae52-c9a6ce827007","expires_in":1699490747,"scope":"SCOPE","shop_id":68032645,"shop_name":"美好菜市","refresh_token":"8334c006-5301-4d25-911b-4d8cc7b70ebb","authority_id":""}`
|
||||
|
||||
// 京西到家
|
||||
var token1 = `{"access_token":"3d290106-d462-4201-80cc-b7b7aa823ae5","expires_in":1723882281,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"d5ae3365-18f6-4c5f-883f-968830ec7bed","authority_id":""}`
|
||||
var token1 = `{"access_token":"j9cjqyruu01j7t4nq1hehos00014hzcz-11","expires_in":1739587252,"scope":"SCOPE","shop_id":68023619,"shop_name":"京西到家","refresh_token":"pi0v58amo61j7t4nq1hehos00014hzcz-12","authority_id":""}`
|
||||
|
||||
var a = New("7267745202649957900", "51998fcf-d521-4553-8c0c-fa662c8dbd6e", token1)
|
||||
|
||||
|
||||
@@ -402,22 +402,22 @@ func TestCreateFreightTemplate(t *testing.T) {
|
||||
func TestUpdateFreightTemplate(t *testing.T) {
|
||||
param := &freightTemplate_update_request.FreightTemplateUpdateParam{
|
||||
Template: &freightTemplate_update_request.Template{
|
||||
Id: 11332268,
|
||||
TemplateName: "京西菜市(盐田一店)_668619的运费模板",
|
||||
ProductProvince: 44,
|
||||
ProductCity: 440300,
|
||||
Id: 622913186,
|
||||
TemplateName: "20002的固定运费模板",
|
||||
ProductProvince: 51,
|
||||
ProductCity: 510100,
|
||||
CalculateType: 2, //计价方式-1.按重量 2.按数量
|
||||
TransferType: 1,
|
||||
RuleType: 1, //固定运费
|
||||
FixedAmount: 500, //固定运费 单位:分
|
||||
},
|
||||
Columns: []freightTemplate_update_request.ColumnsItem{{
|
||||
Columns: nil, /*[]freightTemplate_update_request.ColumnsItem{{
|
||||
//RuleAddress: "{\"440000\":{\"440300\":{\"440306\":[0]}}}",
|
||||
IsOverFree: true, //是否包邮
|
||||
IsDefault: 0,
|
||||
IsLimited: false,
|
||||
OverAmount: 9900, //此字段在vendor_id=14时 存储满x包邮金额
|
||||
}},
|
||||
}}*/
|
||||
}
|
||||
templateID, err := a.FreightTemplateUpdate(param)
|
||||
fmt.Println(templateID)
|
||||
|
||||
Reference in New Issue
Block a user