| | |
| | | e.printStackTrace(); |
| | | } |
| | | System.out.println(httpResponseJson); |
| | | if(StrUtil.isNotBlank(httpResponseJson)){ |
| | | cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(httpResponseJson); |
| | | System.out.println(jsonObject); |
| | | String biz_code = jsonObject.get("biz_code").toString(); |
| | | if("JS000000" == biz_code){ |
| | | return httpResponseJson; |
| | | } |
| | | return "fail"; |
| | | cn.hutool.json.JSONObject jsonObject = JSONUtil.parseObj(httpResponseJson); |
| | | System.out.println(jsonObject); |
| | | String biz_code = jsonObject.get("biz_code").toString(); |
| | | String biz_msg = jsonObject.get("biz_msg").toString(); |
| | | if("JS000000" == biz_code){ |
| | | return biz_code; |
| | | }else{ |
| | | return "fail"; |
| | | return biz_msg; |
| | | } |
| | | } |
| | | |