Commit 5749f15e authored by yzm's avatar yzm

修复bug

parent e8e0764e
...@@ -519,6 +519,7 @@ public class TrafficStatisticsController { ...@@ -519,6 +519,7 @@ public class TrafficStatisticsController {
@GetMapping("/fielagent") @GetMapping("/fielagent")
@ResponseBody
protected void fielagent(@RequestParam("ftpPath") String ftpPath, HttpServletRequest request, HttpServletResponse response) { protected void fielagent(@RequestParam("ftpPath") String ftpPath, HttpServletRequest request, HttpServletResponse response) {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
FileInputStream hFile = null; FileInputStream hFile = null;
......
...@@ -169,3 +169,14 @@ $.ajaxSetup({ ...@@ -169,3 +169,14 @@ $.ajaxSetup({
} }
} }
}); });
function timestampToTime(timestamp) {//转化成YYYYMMDDhhmmss格式的时间戳
var date = new Date(timestamp),//时间戳为10位需*1000,时间戳为13位的话不需乘1000
Y = date.getFullYear() + '-',
M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-',
D = date.getDate() + '-',
h = date.getHours() + ':',
m = date.getMinutes() + ':',
s = date.getSeconds();
return Y+M+D+h+m+s;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment