feat: 导出udm-auth未加密数据
This commit is contained in:
@@ -718,7 +718,7 @@ func (s *UDMAuthController) ExportDec(c *gin.Context) {
|
||||
c.JSON(200, resp.ErrMsg(err.Error()))
|
||||
return
|
||||
}
|
||||
sshClient.RunCMD("sudo rm -rf /user/local/etc/udm/authdata.txt")
|
||||
sshClient.RunCMD(fmt.Sprintf("sudo rm -rf %s", nePath))
|
||||
defer os.Remove(localFilePath)
|
||||
c.FileAttachment(localFilePath, filepath.Base(nePath))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user