This commit is contained in:
2024-02-19 11:05:02 +08:00
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 {

View File

@@ -6,7 +6,6 @@ import (
"time"
mmlclient "ems.agt/lib/core/mml_client"
"ems.agt/src/framework/config"
"ems.agt/src/framework/constants/uploadsubpath"
"ems.agt/src/framework/i18n"
"ems.agt/src/framework/utils/ctx"
@@ -437,7 +436,7 @@ func (s *UDMAuthController) Import(c *gin.Context) {
// 本地文件
localPath := file.ParseUploadFilePath(upFilePath)
nePath := config.Get("mml.upload").(string)
nePath := "/tmp" //config.Get("mml.upload").(string)
// 复制到远程
err = ssh.FileSCPLocalToNe(neInfo.IP, localPath, nePath)
if err != nil {

View File

@@ -7,7 +7,6 @@ import (
"time"
mmlclient "ems.agt/lib/core/mml_client"
"ems.agt/src/framework/config"
"ems.agt/src/framework/constants/uploadsubpath"
"ems.agt/src/framework/i18n"
"ems.agt/src/framework/utils/ctx"
@@ -515,7 +514,7 @@ func (s *UDMSubController) Import(c *gin.Context) {
// 本地文件
localPath := file.ParseUploadFilePath(upFilePath)
nePath := config.Get("mml.upload").(string)
nePath := "/tmp" //config.Get("mml.upload").(string)
// 复制到远程
err = ssh.FileSCPLocalToNe(neInfo.IP, localPath, nePath)
if err != nil {