|
@@ -211,14 +211,16 @@ public class RestUtil {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (failure_points.size() > 0) {
|
|
|
- result.put("result", "failure");
|
|
|
- result.put("failure_points", failure_points);
|
|
|
- result.put("failure_count", failure_points.size());
|
|
|
- } else if (success_points.size() > 0) {
|
|
|
- result.put("result", "success");
|
|
|
- result.put("success_count", success_points.size());
|
|
|
- result.put("success_points", success_points);
|
|
|
+ if (points.size() > 0) {
|
|
|
+ if (failure_points.size() > 0) {
|
|
|
+ result.put("result", "failure");
|
|
|
+ result.put("failure_points", failure_points);
|
|
|
+ result.put("failure_count", failure_points.size());
|
|
|
+ } else {
|
|
|
+ result.put("result", "success");
|
|
|
+ result.put("success_count", success_points.size());
|
|
|
+ result.put("success_points", success_points);
|
|
|
+ }
|
|
|
} else {
|
|
|
result.put("result", "failure");
|
|
|
result.put("remark", "暂无可控点位");
|