状态流转回调demo
回调 请求数据类型: application/x-www-form-urlencoded 编码方式: UTF-8
下单后,司机接单改派等情况对接方会收到回调,(Java版)参看代码如下:封装参数(属性的setter,getter)
postman自测
返回值code=0,成功。
控制台打印了回调信息的内外层参数信息。
部署到测试环境,司机端测试账号登录后接单,司机接单时日志里打印了回调信息的内外层参数信息,如下图。其他订单状态回调信息也可以参考代码来处理。
回调生成签名的串格式如下:
channel=shouqi&eventId=e836915ff7394d6ba7f3f78b6be0b8bd&eventTime=1554982873&expiredTime=1554983173&meta={"driverInfo":{"vehicleColor":"1","modelName":"天籁","groupName":"舒适型","driverRate":"4.4","driverId":"100025649","phone":"15510740920","groupId":34,"licensePlates":"京B00079","name":"测试司机","imei":"23c383fd74c0461696d7568b26a2898e","vehiclePic":"","photoSrc":""},"orderNo":"B190411194047055000","partnerOrderNo":"101540000004576501","status":"accepted"}&sqycKey=s943z1067V321wU6