This commit is contained in:
邹宗楠
2023-01-13 17:25:09 +08:00
parent eec044c49c
commit a134b95fd0
7 changed files with 56 additions and 39 deletions

View File

@@ -42,8 +42,7 @@ func init() {
//
//计算运单价格
func TestGetWaybillPrice(t *testing.T) {
needPayMoney, priceToken, err := api.GetOrderPrice(&GetOrderPriceReq{
param := &GetOrderPriceReq{
OriginID: "T00001",
FromAddress: "郑州国际会展中心",
ToAddress: "商务外环路17号",
@@ -53,7 +52,9 @@ func TestGetWaybillPrice(t *testing.T) {
ToLng: "113.736445",
FromLat: "34.778494",
FromLng: "113.736858",
})
}
price := utils.Struct2Map(param, "", false)
needPayMoney, priceToken, err := api.GetOrderPrice(price)
fmt.Println(needPayMoney, priceToken, err)
}