This commit is contained in:
邹宗楠
2022-06-30 17:48:39 +08:00
parent e24f96ea99
commit a728f1aec8
3 changed files with 37 additions and 22 deletions

View File

@@ -32,22 +32,20 @@ func TestLogin(t *testing.T) {
// 获取所有的快递费接口
func TestGatAllFee(t *testing.T) {
api := NewQBiDa("18048531223", "18080188338")
for i := 1; i <= 14; i++ {
result, err := api.GetExpressPrice(&GetExpressPriceReq{
PromiseTimeType: 0,
DeliveryType: 0,
GoodsValue: 1000,
SendAddress: "四川省成都市金牛区二环北路一段10号万科加州湾V派616",
ReceiveAddress: "北京市北京市朝阳区来广营地区中铁国际城乐享汇大厦3号楼1132",
Type: i,
Weight: 1,
Length: 100,
Height: 100,
Width: 100,
SendPhone: "18981810340",
})
globals.SugarLogger.Debug("err==="+fmt.Sprintf("%d", i), err)
globals.SugarLogger.Debug("data===", &result)
}
result, err := api.GetExpressPrice(&GetExpressPriceReq{
PromiseTimeType: 0,
DeliveryType: 0,
GoodsValue: 1000,
SendAddress: "四川省成都市金牛区二环北路一段10号万科加州湾V派616",
ReceiveAddress: "北京市北京市朝阳区来广营地区中铁国际城乐享汇大厦3号楼1132",
Type: 0,
Weight: 1,
Length: 100,
Height: 100,
Width: 100,
SendPhone: "18981810340",
})
globals.SugarLogger.Debug("err===", err)
globals.SugarLogger.Debug("data===", &result)
}