diff --git a/src/main/java/org/cloud/sonic/driver/poco/service/impl/SocketClientImpl.java b/src/main/java/org/cloud/sonic/driver/poco/service/impl/SocketClientImpl.java index f682697..e36a1a9 100644 --- a/src/main/java/org/cloud/sonic/driver/poco/service/impl/SocketClientImpl.java +++ b/src/main/java/org/cloud/sonic/driver/poco/service/impl/SocketClientImpl.java @@ -70,14 +70,13 @@ public String sendAndReceive(JSONObject jsonObject) throws SonicRespException { rData.flip(); String pocoResult = new String(rData.array(), StandardCharsets.UTF_8); int subStartIndex = pocoResult.indexOf("\"result\""); - - String pocoPrefix = pocoResult.substring(0, subStartIndex) + "}"; - - if (PocoTool.checkPocoRpcResultID(pocoPrefix, jsonObject.getString("id"))) { + // when cocos is integrated there will be no id +// String pocoPrefix = pocoResult.substring(0, subStartIndex) + "}"; +// if (PocoTool.checkPocoRpcResultID(pocoPrefix, jsonObject.getString("id"))) { return "{" + pocoResult.substring(subStartIndex); - } else { - throw new SonicRespException("id not found!"); - } +// } else { +// throw new SonicRespException("id not found!"); +// } } } } catch (Exception e) {