代码拉取完成,页面将自动刷新
乘客:
15593318164
token:
token-15593318164-1-accressToken: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzZW5nZXJQaG9uZSI6IjE1NTkzMzE4MTY0IiwiaWRlbnRpdHkiOiIxIiwidG9rZW5UaW1lIjoiU2F0IERlYyAwMiAyMDoyNToxMSBDU1QgMjAyMyIsInRva2VuVHlwZSI6ImFjY2Vzc1Rva2VuIn0.7J88x2Bubw47jAM_zKDfSAYaz54ZkvUpMMZVF1AD63M
refreshToken:
token-15593318164-1-refreshToken : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzZW5nZXJQaG9uZSI6IjE1NTkzMzE4MTY0IiwiaWRlbnRpdHkiOiIxIiwidG9rZW5UaW1lIjoiU2F0IERlYyAwMiAyMDoyNToxMSBDU1QgMjAyMyIsInRva2VuVHlwZSI6InJlZnJlc2hUb2tlbiJ9.GxJ7MCUI0fZU750AxE-U0SAZPxfhj0rcOs8QuWFDJMc
预估:
http://localhost:8081/forecast-price
{
"depLongitude": "87.74147",
"depLatitude":"43.847202",
"destLongitude": "87.529002",
"destLatitude":"43.840213",
"cityCode":"110000",
"vehicleType":1
}
乘客发单:
http://localhost:8081/order/add
{
"passengerId":2,
"passengerPhone":"15593318164",
"address":"110000",
"departTime":"2023-12-03 01:10:05",
"orderTime":"2023-12-03 21:40:06",
"departure": "博达",
"depLongitude": "87.74147",
"depLatitude":"43.847202",
"destination":"火车站",
"destLongitude": "87.529002",
"destLatitude":"43.840213",
"encrypt":14,
"fareType":"110000$1",
"fareVersion":1,
"vehicleType": "1"
}
乘客支付:
http://localhost:8081/pay?subject=网约车订单&outTradeNo=33&totalAmount=48.27
账号:uncahf0999@sandbox.com
密码:111111
---------------------------------------------------
司机:
15593318163
token:
token-15593318163-2-accressToken :
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzZW5nZXJQaG9uZSI6IjE1NTkzMzE4MTYzIiwiaWRlbnRpdHkiOiIyIiwidG9rZW5UaW1lIjoiU2F0IERlYyAwMiAyMDoxNzoyMyBDU1QgMjAyMyIsInRva2VuVHlwZSI6ImFjY2Vzc1Rva2VuIn0.nYb09I-wwtmksBvKiP5_ODMWCYyzgOaaXJQji9Mo1W0
refreshToken:
token-15593318163-2-refreshToken :
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwYXNzZW5nZXJQaG9uZSI6IjE1NTkzMzE4MTYzIiwiaWRlbnRpdHkiOiIyIiwidG9rZW5UaW1lIjoiU2F0IERlYyAwMiAyMDoxNzoyMyBDU1QgMjAyMyIsInRva2VuVHlwZSI6InJlZnJlc2hUb2tlbiJ9.ca7N453CUSKCeyr8QHh-GPu0Gsf4GrDXFyjqfM_BQjQ
出车:
http://localhost:8088/driver-user-work-status
{
"driverId":2,
"workStatus":1
}
起点位置上传:
http://localhost:8088/point/upload
{
"carId": 4,
"points": [
{
"location":"87.74147,43.847202",
"locatetime": 1701610244000 // 时间戳到毫秒
}
]
}
去接乘客:
http://localhost:8088/order/to-pick-up-passenger
{
"orderId":33,
"toPickUpPassengerTime": "2023-12-03 22:10:06",
"toPickUpPassengerLongitude": "87.74",
"toPickUpPassengerLatitude": "43.84",
"toPickUpPassengerAddress":"西区西门"
}
司机到达乘客起点:
http://localhost:8088/order/arrived-departure
{
"orderId":33
}
乘客上车,开始行程:
http://localhost:8088/order/pick-up-passenger
{
"orderId": 33,
"pickUpPassengerLongitude":"87.747",
"pickUpPassengerLatitude": "43.845"
}
坐标实时上报:数据在项目根目录python文件构造
轨迹点较多的话,测试时分段上传,一次上传200条轨迹点
http://localhost:8088/point/upload
{
"carId": 4,
"points": [
{
"location": "87.742775,43.846543",
"locatetime": 1701677051415
},
{
"location": "87.742722,43.846489",
"locatetime": 1701677056403
},
{
"location": "87.742685,43.846435",
"locatetime": 1701677061391
},
{
"location": "87.742652,43.846392",
"locatetime": 1701677066379
},
{
"location": "87.742599,43.846285",
"locatetime": 1701677071367
},
{
"location": "87.742566,43.846161",
"locatetime": 1701677076355
},
{
"location": "87.74255,43.846038",
"locatetime": 1701677081343
},
{
"location": "87.742572,43.845909",
"locatetime": 1701677086331
},
{
"location": "87.74262,43.845786",
"locatetime": 1701677091319
},
{
"location": "87.74299,43.845265",
"locatetime": 1701677096308
},
{
"location": "87.743124,43.845046",
"locatetime": 1701677101296
},
{
"location": "87.743194,43.844466",
"locatetime": 1701677106284
},
{
"location": "87.74321,43.844391",
"locatetime": 1701677111272
},
{
"location": "87.743253,43.844321",
"locatetime": 1701677116260
},
{
"location": "87.744122,43.843334",
"locatetime": 1701677121248
}
]
}
乘客到达目的地,下车:
http://localhost:8088/order/passenger-getoff
{
"orderId": 33,
"passengerGetoffLongitude":"87.527971",
"passengerGetoffLatitude":"43.839535"
}
司机发起收款:
http://localhost:8088/pay/push-pay-info
post 表单 x-www-form-urlencoded
"orderId": 33,
"passengerId": 2,
"price": 48.27
adcode: "110000"
center: "116.407387,39.904179"
citycode: "010"
name: "北京市"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。