wuxw7
2018-12-01 05e63a3e51579fcc348397722cb219ad44ea49d1
用户登录bug修复
1个文件已修改
4 ■■■ 已修改文件
Api/src/main/java/com/java110/api/listener/UserLoginServiceListener.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Api/src/main/java/com/java110/api/listener/UserLoginServiceListener.java
@@ -72,7 +72,9 @@
        //根据AppId 查询 是否有登录的服务,查询登录地址调用
        AppService appService = DataFlowFactory.getService(dataFlowContext.getAppId(), ServiceCodeConstant.SERVICE_CODE_QUERY_USER_LOGIN);
        String requestUrl = appService.getUrl() + "?userCode="+paramInJson.getString("username");
        HttpEntity<String> httpEntity = new HttpEntity<String>("", new HttpHeaders());
        HttpHeaders header = new HttpHeaders();
        header.add(CommonConstant.HTTP_SERVICE.toLowerCase(),ServiceCodeConstant.SERVICE_CODE_QUERY_USER_LOGIN);
        HttpEntity<String> httpEntity = new HttpEntity<String>("", header);
        try{
            responseEntity = restTemplate.exchange(requestUrl, HttpMethod.GET, httpEntity, String.class);
        }catch (HttpStatusCodeException e){ //这里spring 框架 在4XX 或 5XX 时抛出 HttpServerErrorException 异常,需要重新封装一下