This commit is contained in:
richboo111
2023-01-14 09:55:15 +08:00
parent a134b95fd0
commit b09025c0c3
2 changed files with 9 additions and 17 deletions

View File

@@ -43,19 +43,18 @@ func init() {
//计算运单价格
func TestGetWaybillPrice(t *testing.T) {
param := &GetOrderPriceReq{
OriginID: "T00001",
FromAddress: "郑州国际会展中心",
ToAddress: "商务外环路17号",
CityName: "郑州市",
OriginID: "T20230114M",
FromAddress: "万科加州湾V派",
ToAddress: "嘉华酒店",
CityName: "成都市",
SendType: "0",
ToLat: "34.784275",
ToLng: "113.736445",
FromLat: "34.778494",
FromLng: "113.736858",
ToLat: "30.691134",
ToLng: "104.042307",
FromLat: "30.693001",
FromLng: "104.04546",
}
price := utils.Struct2Map(param, "", false)
needPayMoney, priceToken, err := api.GetOrderPrice(price)
fmt.Println(needPayMoney, priceToken, err)
}