| | |
| | | } |
| | | |
| | | JSONObject resultVo = JSONObject.parseObject(responseEntity.getBody()); |
| | | |
| | | Object bObj = null; |
| | | if(resultVo.containsKey("code")){ |
| | | if (ResultVo.CODE_MACHINE_OK != resultVo.getInteger("code")) { |
| | | throw new SMOException(resultVo.getString("msg")); |
| | | } |
| | | bObj = resultVo.get("data"); |
| | | }else{ |
| | | bObj = resultVo; |
| | | } |
| | | |
| | | Object bObj = resultVo.get("data"); |
| | | |
| | | JSONArray datas = null; |
| | | if (bObj instanceof JSONObject) { |
| | | datas = new JSONArray(); |
| | |
| | | |
| | | JSONObject resultVo = JSONObject.parseObject(responseEntity.getBody()); |
| | | |
| | | if (!"0".equals(resultVo.getString("code"))) { |
| | | Object bObj = null; |
| | | if(resultVo.containsKey("code")){ |
| | | if (ResultVo.CODE_MACHINE_OK != resultVo.getInteger("code")) { |
| | | throw new SMOException(resultVo.getString("msg")); |
| | | } |
| | | |
| | | Object bObj = resultVo.get("data"); |
| | | bObj = resultVo.get("data"); |
| | | }else{ |
| | | bObj = resultVo; |
| | | } |
| | | JSONArray datas = null; |
| | | if (bObj instanceof JSONObject) { |
| | | datas = new JSONArray(); |