| | |
| | | JSONObject response = RestUtils.get(getOauthUrl); |
| | | if(response.containsKey(Constants.QY_WX_ERR_CODE) && response.getInteger(Constants.QY_WX_ERR_CODE) != 0){ |
| | | logger.error(response.toString()); |
| | | throw new ServiceException("获取企业微信信息异常"); |
| | | return new JSONObject(); |
| | | } |
| | | logger.info("----------------userinfo-------------"); |
| | | logger.info(response.toString()); |
| | |
| | | //获取错误日志 |
| | | if(detailResponse.containsKey(Constants.QY_WX_ERR_CODE) && detailResponse.getInteger(Constants.QY_WX_ERR_CODE) != 0){ |
| | | logger.error(detailResponse.toString()); |
| | | throw new ServiceException("获取企业微信信息异常"); |
| | | return new JSONObject(); |
| | | } |
| | | logger.info("----------------userinfo detail -------------"); |
| | | logger.info(detailResponse.toString()); |
| | |
| | | JSONObject response = RestUtils.get(url); |
| | | if(response.containsKey(Constants.QY_WX_ERR_CODE) && response.getInteger(Constants.QY_WX_ERR_CODE) != 0){ |
| | | logger.error(response.toString()); |
| | | throw new ServiceException("获取企业微信信息异常"); |
| | | return ""; |
| | | } |
| | | |
| | | ticket = response.getString(Constants.QY_WX_TICKET); |