wuxw
2019-12-27 7fa84cbdd2a4621fab799ce52d5bb883fd1069f5
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);