优化代码

This commit is contained in:
刘祥超
2023-08-08 14:17:16 +08:00
parent 22aca2e80c
commit 5db14ec84a
58 changed files with 159 additions and 125 deletions

View File

@@ -36,7 +36,7 @@ func UpdateNodeIPAddresses(parentAction *actionutils.ParentAction, nodeId int64,
if addrId > 0 {
resultAddrIds = append(resultAddrIds, addrId)
var isOn = false
var isOn bool
if !addr.Has("isOn") { // 兼容老版本
isOn = true
} else {