Commit 1d08e991 by 朱海

[chg]兼容前端特征

1 parent 7b8555fa
...@@ -807,7 +807,8 @@ public class ReidService { ...@@ -807,7 +807,8 @@ public class ReidService {
if (datas == null || datas.size() == 0) { if (datas == null || datas.size() == 0) {
return null; return null;
} }
Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null); //Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null);
Data data = datas.get(0);
if (data == null) { if (data == null) {
return null; return null;
} }
......
...@@ -148,7 +148,8 @@ public class StorageUtils { ...@@ -148,7 +148,8 @@ public class StorageUtils {
if (datas == null || datas.size() == 0) { if (datas == null || datas.size() == 0) {
return null; return null;
} }
Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null); //Data data = datas.stream().filter(item -> "server".equals(item.getType())).findFirst().orElse(null);
Data data = datas.get(0);
if (data == null) { if (data == null) {
return null; return null;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!