From dacae5af651baa6ae102c8dd4350a7b8b7d86fe6 Mon Sep 17 00:00:00 2001 From: lizijie <lzjiiie@163.com> Date: Thu, 28 Apr 2022 16:16:40 +0800 Subject: [PATCH] 通过时间和mac集合查询数据接口,修改蜂窝图小时数据接口 --- screen-api/src/main/java/com/moral/api/controller/ChartController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/screen-api/src/main/java/com/moral/api/controller/ChartController.java b/screen-api/src/main/java/com/moral/api/controller/ChartController.java index bbbc70a..8afedd2 100644 --- a/screen-api/src/main/java/com/moral/api/controller/ChartController.java +++ b/screen-api/src/main/java/com/moral/api/controller/ChartController.java @@ -259,9 +259,9 @@ String path = applicationHome.getSource().getParentFile().toString() + "/static/tsv"; //File file = File.createTempFile("test",".tsv"); - if (!new File(path).exists()){ + /*if (!new File(path).exists()){ new File(path).mkdir(); - } + }*/ File file = null; File dir = new File(path); file = File.createTempFile("honeycombDiagram",".tsv",dir); @@ -290,11 +290,11 @@ ow.flush(); ow.close(); - String localAddr = httpServletRequest.getLocalAddr(); - int serverPort = httpServletRequest.getServerPort(); + /*String localAddr = httpServletRequest.getLocalAddr(); + int serverPort = httpServletRequest.getServerPort();*/ Map<String,Object> res = new HashMap<>(); - res.put("path","http://"+localAddr +":"+ serverPort+"/static/tsv/"+file.getName()); + res.put("path","http://47.99.64.149:8081"+"/static/tsv/"+file.getName()); return ResultMessage.ok(res); } -- Gitblit v1.8.0