XMTT vor 6 Jahren
Ursprung
Commit
4f079d43fa
1 geänderte Dateien mit 1 neuen und 2 gelöschten Zeilen
  1. 1 2
      src/main/java/com/ekexiu/project/bridge/servlet/EnvDataServlet.java

+ 1 - 2
src/main/java/com/ekexiu/project/bridge/servlet/EnvDataServlet.java

160
                    len = body.length;
160
                    len = body.length;
161
                    offset = 0;
161
                    offset = 0;
162
                    List<EnvData> list = new ArrayList<EnvData>();
162
                    List<EnvData> list = new ArrayList<EnvData>();
163
                    while (len >= offset) {
163
                    while (len > offset) {
164
                        int id = body[offset + 3] & 0xFF;
164
                        int id = body[offset + 3] & 0xFF;
165
                        id <<= 8;
165
                        id <<= 8;
166
                        id += body[offset + 2] & 0xFF;
166
                        id += body[offset + 2] & 0xFF;
186
                        timeArray[12] = (char) body[offset + 29];
186
                        timeArray[12] = (char) body[offset + 29];
187
                        timeArray[13] = (char) body[offset + 30];
187
                        timeArray[13] = (char) body[offset + 30];
188
                        offset += 32;
188
                        offset += 32;
189
                        len -= 32;
190
                        EnvData envData = new EnvData();
189
                        EnvData envData = new EnvData();
191
                        envData.setItemId(id);
190
                        envData.setItemId(id);
192
                        envData.setItemValue(value);
191
                        envData.setItemValue(value);