| | |
| | | |
| | | import cn.huge.base.common.bo.R; |
| | | import cn.huge.base.common.utils.HttpClientUtils; |
| | | import cn.huge.base.common.utils.SpringContextUtil; |
| | | import cn.huge.module.grid.domain.dto.GridOrgDTO; |
| | | import cn.huge.module.grid.domain.dto.GridRoleMenuDTO; |
| | | import cn.huge.module.grid.domain.dto.GridSysRoleDTO; |
| | |
| | | requestVo.setBodyVo(gridTokenVo); |
| | | try { |
| | | // log.info("xsdobject:{}",JSON.toJSONString(requestVo)); |
| | | log.info("xsdurl:{}",gridUrl + "/sys/getUserByToken"); |
| | | // log.info("xsdurl:{}",testUrl + "/sys/getUserByToken"); |
| | | s = HttpClientUtils.httpPostRaw(gridUrl + "/sys/getUserByToken", JSON.toJSONString(requestVo), new HashMap<>(), "utf-8"); |
| | | // 开发环境 |
| | | if (SpringContextUtil.checkDev()) { |
| | | log.info("xsdurl:{}",testUrl + "/sys/getUserByToken"); |
| | | s = HttpClientUtils.httpPostRaw(testUrl + "/sys/getUserByToken", JSON.toJSONString(requestVo), new HashMap<>(), "utf-8"); |
| | | }else { |
| | | log.info("xsdurl:{}",gridUrl + "/sys/getUserByToken"); |
| | | s = HttpClientUtils.httpPostRaw(gridUrl + "/sys/getUserByToken", JSON.toJSONString(requestVo), new HashMap<>(), "utf-8"); |
| | | } |
| | | log.info("xsd:{}",s); |
| | | } catch (Exception e) { |
| | | log.info("xsderror:{}",e.getLocalizedMessage()); |