fix: 不对比网元信息中版本信息,重置路径和包名

This commit is contained in:
TsMask
2025-09-02 10:35:27 +08:00
parent 2af2847cb1
commit 325a7c7445

View File

@@ -395,8 +395,6 @@ func (s NeInfoController) Add(c *gin.Context) {
// 已有网元可获取的信息
if body.ServerState != nil {
if v, ok := body.ServerState["version"]; ok && v != nil {
neVersion.Name = "-"
neVersion.Path = "-"
neVersion.Version = fmt.Sprint(v)
}
if v, ok := body.ServerState["sn"]; ok && v != nil {
@@ -499,8 +497,6 @@ func (s NeInfoController) Edit(c *gin.Context) {
// 已有网元可获取的信息
if body.ServerState != nil {
if v, ok := body.ServerState["version"]; ok && v != nil {
neVersion.Name = "-"
neVersion.Path = "-"
neVersion.Version = fmt.Sprint(v)
neVersion.UpdateBy = loginUserName
}