From f310341fa6ee56e2bbf468a5544eaa74eed34776 Mon Sep 17 00:00:00 2001 From: wangjian Date: Sat, 17 Jun 2023 09:41:02 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/node.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/model/node.go b/model/node.go index 01edf6c..22cd1cb 100644 --- a/model/node.go +++ b/model/node.go @@ -21,7 +21,8 @@ type Node struct { Arch string `xorm:"varchar(1000)" json:"arch,omitempty"` Virtualization string `xorm:"varchar(1000)" json:"virtualization,omitempty"` BootTime uint64 `xorm:"BIGINT" json:"bootTime,omitempty"` - IP string `xorm:"varchar(100)" json:"ip"` + IP string `xorm:"varchar(100)" json:"ip"` //互联网显示地址 + LocalIP string `xorm:"VARCHAR(100)" json:"localIP"` //本地局域网IP地址 CountryCode string `xorm:"varchar(100)" json:"countryCode,omitempty"` Version string `xorm:"varchar(100)" json:"version,omitempty"` CreateAt int64 `xorm:"created" json:"createAt"` @@ -63,6 +64,7 @@ func (n Node) Insert() { node.Virtualization = n.Virtualization node.BootTime = n.BootTime node.IP = n.IP + node.LocalIP = n.LocalIP node.CountryCode = n.CountryCode node.Version = n.Version if b {