fix: mml-udm dec key后查看文件内容

This commit is contained in:
TsMask
2025-09-25 15:14:29 +08:00
parent f72020107b
commit ce993c6fcd

View File

@@ -616,6 +616,16 @@ func PostMMLToNF(w http.ResponseWriter, r *http.Request) {
result := re1.ReplaceAllString(string(buf[0:n-len(neType)-2]), "")
result = re2.ReplaceAllString(result, "")
mmlResult = append(mmlResult, result)
// UDM 特殊命令处理
if neType == "UDM" && mml == "dec key" {
output, err := neService.NewNeInfo.NeRunSSHCmd(neInfo.NeType, neInfo.NeId, "cat /usr/local/etc/udm/ueKeyProfile.tmp")
if err != nil {
mmlResult = append(mmlResult, err.Error())
} else {
mmlResult = append(mmlResult, output)
}
}
}
}