fix: 网元文件上传都放到tmp目录下

This commit is contained in:
TsMask
2024-02-19 10:59:39 +08:00
parent c37946c07e
commit 6c7da72cf5
3 changed files with 3 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ import (
"path/filepath"
"strings"
"ems.agt/src/framework/config"
"ems.agt/src/framework/i18n"
"ems.agt/src/framework/utils/ctx"
"ems.agt/src/framework/utils/file"
@@ -53,7 +52,7 @@ func (s *NeActionController) PushFile(c *gin.Context) {
// 本地文件
localPath := file.ParseUploadFilePath(body.UploadPath)
nePath := config.Get("mml.upload").(string)
nePath := "/tmp" //config.Get("mml.upload").(string)
// 复制到远程
err := ssh.FileSCPLocalToNe(neInfo.IP, localPath, nePath)
if err != nil {