[fix]修改日志存储不全问题

This commit is contained in:
xinfengkun
2022-04-26 13:58:09 +08:00
parent 731e9eec55
commit 2805759713

View File

@@ -116,7 +116,8 @@ public class DataDistribution {
}
private String onTransmit(String time, BaseInfo data) {
String str = cutDown(data.toString());
String temp = data.toString();
String str = cutDown(temp);
if (data instanceof Trajectory) {
listTrajectory.add(0, time + str);
if (listTrajectory.size() > LIST_SIZE) {
@@ -310,7 +311,7 @@ public class DataDistribution {
// }
}
return str;
return temp;
}
private class WriteThread implements Runnable {