|
@@ -472,8 +472,8 @@ public class EntityAnalyse {
|
|
|
// 执行请求操作,并拿到结果(同步阻塞)
|
|
|
String body = EntityUtils.toString(response.getEntity());
|
|
|
JSONObject jsonObject = JSONObject.parseObject(body);
|
|
|
- if ("异常".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONArray("validateResult");
|
|
|
+ if ("异常".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ JSONArray jsonArray = jsonObject.getJSONArray("result").getJSONObject(0).getJSONArray("validateResult");
|
|
|
String result = "";
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
if ("异常".equals(jsonArray.getJSONObject(i).getString("flag"))) {
|
|
@@ -482,12 +482,12 @@ public class EntityAnalyse {
|
|
|
}
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("待校验".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
+ } else if ("待校验".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
String result = "待校验";
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("通过".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- String result = jsonObject.getJSONObject("result").getString("validateStatus");
|
|
|
+ } else if ("通过".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ String result = (jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"));
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
}
|
|
@@ -529,8 +529,8 @@ public class EntityAnalyse {
|
|
|
// 执行请求操作,并拿到结果(同步阻塞)
|
|
|
String body = EntityUtils.toString(response.getEntity());
|
|
|
JSONObject jsonObject = JSONObject.parseObject(body);
|
|
|
- if ("异常".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONArray("validateResult");
|
|
|
+ if ("异常".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ JSONArray jsonArray = jsonObject.getJSONArray("result").getJSONObject(0).getJSONArray("validateResult");
|
|
|
String result = "";
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
if ("异常".equals(jsonArray.getJSONObject(i).getString("flag"))) {
|
|
@@ -539,12 +539,12 @@ public class EntityAnalyse {
|
|
|
}
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("待校验".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
+ } else if ("待校验".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
String result = "待校验";
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("通过".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- String result = jsonObject.getJSONObject("result").getString("validateStatus");
|
|
|
+ } else if ("通过".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ String result = (jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"));
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
}
|
|
@@ -582,8 +582,8 @@ public class EntityAnalyse {
|
|
|
// 执行请求操作,并拿到结果(同步阻塞)
|
|
|
String body = EntityUtils.toString(response.getEntity());
|
|
|
JSONObject jsonObject = JSONObject.parseObject(body);
|
|
|
- if ("异常".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- JSONArray jsonArray = jsonObject.getJSONObject("result").getJSONArray("validateResult");
|
|
|
+ if ("异常".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ JSONArray jsonArray = jsonObject.getJSONArray("result").getJSONObject(0).getJSONArray("validateResult");
|
|
|
String result = "";
|
|
|
for (int i = 0; i < jsonArray.size(); i++) {
|
|
|
if ("异常".equals(jsonArray.getJSONObject(i).getString("flag"))) {
|
|
@@ -592,12 +592,12 @@ public class EntityAnalyse {
|
|
|
}
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("待校验".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
+ } else if ("待校验".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
String result = "待校验";
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
- } else if ("通过".equals(jsonObject.getJSONObject("result").getString("validateStatus"))) {
|
|
|
- String result = jsonObject.getJSONObject("result").getString("validateStatus");
|
|
|
+ } else if ("通过".equals(jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"))) {
|
|
|
+ String result = (jsonObject.getJSONArray("result").getJSONObject(0).getString("validateStatus"));
|
|
|
System.out.println("result = " + result);
|
|
|
return result;
|
|
|
}
|