1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user