From 95e75800974a1be7ac19717e14077222490f848b Mon Sep 17 00:00:00 2001
From: lizijie <lzjiiie@163.com>
Date: Wed, 27 Apr 2022 16:24:31 +0800
Subject: [PATCH] 蜂窝图修改
---
screen-api/src/main/java/com/moral/api/controller/ChartController.java | 9 ++++++---
1 files changed, 6 insertions(+), 3 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 2e3211a..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,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://47.99.64.149:8081"+"/static/tsv/"+file.getName());
return ResultMessage.ok(res);
}
--
Gitblit v1.8.0