lizijie
2022-04-27 742a4e8efebdb071623af99896b6817f5aa311cc
screen-api/src/main/java/com/moral/api/controller/ChartController.java
@@ -290,8 +290,11 @@
        ow.flush();
        ow.close();
        String localAddr = httpServletRequest.getLocalAddr();
        int serverPort = httpServletRequest.getServerPort();
        Map<String,Object> res = new HashMap<>();
        res.put("path",file.getPath());
        res.put("path","http://"+localAddr +":"+ serverPort+"/static/tsv/"+file.getName());
        return ResultMessage.ok(res);
    }