mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-26 15:07:49 +08:00
1078-设置路线...
This commit is contained in:
parent
9280b57974
commit
00749619da
@ -36,13 +36,12 @@ public class JTRoute {
|
|||||||
byteBuf.writeBytes(attribute.encode());
|
byteBuf.writeBytes(attribute.encode());
|
||||||
byteBuf.writeBytes(BCDUtil.transform(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(startTime)));
|
byteBuf.writeBytes(BCDUtil.transform(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(startTime)));
|
||||||
byteBuf.writeBytes(BCDUtil.transform(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(endTime)));
|
byteBuf.writeBytes(BCDUtil.transform(DateUtil.yyyy_MM_dd_HH_mm_ssToTimestamp(endTime)));
|
||||||
// byteBuf.writeShort((short)(routePointList.size() & 0xffff));
|
byteBuf.writeShort((short)(routePointList.size() & 0xffff));
|
||||||
byteBuf.writeShort((short)(0 & 0xffff));
|
if (!routePointList.isEmpty()){
|
||||||
// if (!routePointList.isEmpty()){
|
for (JTRoutePoint jtRoutePoint : routePointList) {
|
||||||
// for (JTRoutePoint jtRoutePoint : routePointList) {
|
byteBuf.writeBytes(jtRoutePoint.encode());
|
||||||
// byteBuf.writeBytes(jtRoutePoint.encode());
|
}
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
byteBuf.writeShort((short)(name.getBytes(Charset.forName("GBK")).length & 0xffff));
|
byteBuf.writeShort((short)(name.getBytes(Charset.forName("GBK")).length & 0xffff));
|
||||||
byteBuf.writeCharSequence(name, Charset.forName("GBK"));
|
byteBuf.writeCharSequence(name, Charset.forName("GBK"));
|
||||||
return byteBuf;
|
return byteBuf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user