| | |
| | | package com.xiaopeng.automaticPilot.util; |
| | | |
| | | import cn.hutool.core.lang.Snowflake; |
| | | import cn.hutool.core.util.IdUtil; |
| | | import cn.hutool.http.HttpRequest; |
| | | import cn.hutool.http.HttpResponse; |
| | | import cn.hutool.http.HttpUtil; |
| | |
| | | header.setMsg_id(UUID.randomUUID().toString()); |
| | | header.setTimestamp(System.currentTimeMillis()); |
| | | header.setCmd(RTCmdType.CLOUD_ORDER_OPERATION); |
| | | header.setSequence(1L); |
| | | header.setType(MessageType.MESSAGE_TYPE_RESPONSE); |
| | | Snowflake snowflake = IdUtil.getSnowflake(0, 0); |
| | | header.setSequence(snowflake.nextId()); |
| | | header.setType(MessageType.MESSAGE_TYPE_REQUEST); |
| | | msgContent.setHeader(header); |
| | | // 消息内容 |
| | | JSONObject jsonObject = new JSONObject(); |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |