fix: 不对比网元信息中版本信息,重置路径和包名
This commit is contained in:
@@ -395,8 +395,6 @@ func (s NeInfoController) Add(c *gin.Context) {
|
|||||||
// 已有网元可获取的信息
|
// 已有网元可获取的信息
|
||||||
if body.ServerState != nil {
|
if body.ServerState != nil {
|
||||||
if v, ok := body.ServerState["version"]; ok && v != nil {
|
if v, ok := body.ServerState["version"]; ok && v != nil {
|
||||||
neVersion.Name = "-"
|
|
||||||
neVersion.Path = "-"
|
|
||||||
neVersion.Version = fmt.Sprint(v)
|
neVersion.Version = fmt.Sprint(v)
|
||||||
}
|
}
|
||||||
if v, ok := body.ServerState["sn"]; ok && v != nil {
|
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 body.ServerState != nil {
|
||||||
if v, ok := body.ServerState["version"]; ok && v != nil {
|
if v, ok := body.ServerState["version"]; ok && v != nil {
|
||||||
neVersion.Name = "-"
|
|
||||||
neVersion.Path = "-"
|
|
||||||
neVersion.Version = fmt.Sprint(v)
|
neVersion.Version = fmt.Sprint(v)
|
||||||
neVersion.UpdateBy = loginUserName
|
neVersion.UpdateBy = loginUserName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user