| | |
| | | JSONObject resultResponse = JSON.parseObject(socketResult.get("response").toString()); |
| | | JSONObject resultBody = JSON.parseObject(resultResponse.get("body").toString()); |
| | | String responseType = resultBody.get("responseType").toString(); |
| | | String responseTaskId = resultBody.get("taskId").toString(); |
| | | if (DEBUG) { |
| | | result = socketResult; |
| | | break; |
| | |
| | | continue;//响应类型与请求类型不一致,不在调试模式下 |
| | | } |
| | | |
| | | if (taskId != null && !responseTaskId.equals(taskId)) { |
| | | continue;//响应ID与请求ID不一致,不在调试模式下 |
| | | if (taskId != null) { |
| | | String responseTaskId = resultBody.get("taskId").toString(); |
| | | if (!responseTaskId.equals(taskId)) { |
| | | continue;//响应ID与请求ID不一致,不在调试模式下 |
| | | } |
| | | } |
| | | |
| | | result = socketResult; |