fix: UDM鉴权用户status默认0

This commit is contained in:
TsMask
2023-11-08 18:38:08 +08:00
parent 53202b5be9
commit c747fe3fb6
2 changed files with 5 additions and 7 deletions

View File

@@ -1168,9 +1168,7 @@ func (s *UdmUserApi) UdmSubUserImport(w http.ResponseWriter, r *http.Request) {
ctx.JSON(w, 200, result.ErrMsg(err.Error()))
return
}
data2 := file.ReadCSVFile(localPath)
neId = ""
go s.subUser.InsertCSV(neId, data2)
// 复制到远程
err = ssh.FileSCPLocalToNe(neInfo.Ip, localPath, nePath)
if err != nil {