feat: 文件资源统一放到/usr/local/omc

This commit is contained in:
TsMask
2025-06-06 15:02:45 +08:00
parent 7c045fc036
commit c67fbb7998
8 changed files with 31 additions and 28 deletions

View File

@@ -141,7 +141,7 @@ func (s *PacketController) FilePull(c *gin.Context) {
return
}
fileName := fmt.Sprintf("%s.pcap", querys.TaskNo)
localFilePath := filepath.Join("/tmp/omc/packet", fileName)
localFilePath := filepath.Join("/usr/local/omc/packet", fileName)
if runtime.GOOS == "windows" {
localFilePath = fmt.Sprintf("C:%s", localFilePath)
}