吴学文
2019-11-24 c6de656dfe4a5c2c0ea9719708788203d702e9ab
AppFrontService/src/main/java/com/java110/app/smo/api/impl/ApiSMOImpl.java
@@ -31,7 +31,7 @@
        logger.debug("api请求头" + headers + ";请求内容:" + body);
        HttpMethod method = null;
        String url = ServiceConstant.SERVICE_API_URL +"/api/"+ headers.get(CommonConstant.HTTP_SERVICE);
        String url = ServiceConstant.SERVICE_API_URL + "/api/" + headers.get(CommonConstant.HTTP_SERVICE);
        if (CommonConstant.HTTP_METHOD_POST.equals(headers.get(CommonConstant.HTTP_METHOD))) {
            method = HttpMethod.POST;
        } else if (CommonConstant.HTTP_METHOD_GET.equals(headers.get(CommonConstant.HTTP_METHOD))) {
@@ -53,6 +53,7 @@
        }
        HttpEntity<String> httpEntity = new HttpEntity<String>(body, header);
        logger.debug("请求后端url" + url);
        ResponseEntity<String> responseEntity = restTemplate.exchange(url, method, httpEntity, String.class);
        logger.debug("api返回信息" + responseEntity);