Commit 39266651 by zhangxk

修改ftp文件上传目录

增加视频接收接口日志打印
1 parent b576e301
...@@ -39,6 +39,8 @@ public class DataController { ...@@ -39,6 +39,8 @@ public class DataController {
@PostMapping("/video") @PostMapping("/video")
public Object receiveVideo(@RequestParam(name = "file") MultipartFile file, MultipartHttpServletRequest request) throws IOException { public Object receiveVideo(@RequestParam(name = "file") MultipartFile file, MultipartHttpServletRequest request) throws IOException {
log.info("接收到视频文件");
log.warn("接收到视频文件");
String refid = request.getParameter("refid"); String refid = request.getParameter("refid");
VideoUtil.addVideo(refid, file.getBytes()); VideoUtil.addVideo(refid, file.getBytes());
return "success"; return "success";
......
...@@ -27,7 +27,7 @@ public interface Process { ...@@ -27,7 +27,7 @@ public interface Process {
ip = "null"; ip = "null";
LOGGER.error("", e); LOGGER.error("", e);
} }
return "12401/video/" + yyyyMMdd + "/" + ip + "/" + deviceId + "/" + fileName; return "video/" + yyyyMMdd + "/12401/" + fileName;
} }
static byte[] downloadFile(String url) { static byte[] downloadFile(String url) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!