diff --git a/src/gonganxitong/service.go b/src/gonganxitong/service.go index 94338e5..0f3180e 100644 --- a/src/gonganxitong/service.go +++ b/src/gonganxitong/service.go @@ -34,7 +34,7 @@ type service struct { } func ServiceUID(m *ice.Message) string { - return kit.Hashs(ice.Info.Hostname, ice.Info.Pwd, m.Prefix(web.PORTAL)) + return kit.Hashs(ice.Info.HostName, ice.Info.Pwd, m.Prefix(web.PORTAL)) } func (s service) Inputs(m *ice.Message, arg ...string) { switch s.Table.Inputs(m, arg...); arg[0] { @@ -45,7 +45,7 @@ func (s service) Inputs(m *ice.Message, arg ...string) { func (s service) Update(m *ice.Message, arg ...string) { uid := ServiceUID(m) if s.Select(m.Spawn(), model.UID, uid).Length() == 0 { - s.Insert(m, kit.Simple(model.UID, uid, model.SPACE, ice.Info.NodeName, model.INDEX, s.PrefixPortal(m), tcp.NODETYPE, ice.Info.NodeType, tcp.NODENAME, ice.Info.NodeName, nfs.PATHNAME, ice.Info.Pwd, tcp.HOSTNAME, ice.Info.Hostname)...) + s.Insert(m, kit.Simple(model.UID, uid, model.SPACE, ice.Info.NodeName, model.INDEX, s.PrefixPortal(m), tcp.NODETYPE, ice.Info.NodeType, tcp.NODENAME, ice.Info.NodeName, nfs.PATHNAME, ice.Info.Pwd, tcp.HOSTNAME, ice.Info.HostName)...) } s.Table.Update(m, kit.Dict(arg, m.OptionSimple(mdb.NAME, mdb.ICON), model.SPACE, ice.Info.NodeName, nfs.MODULE, ice.Info.Make.Module, nfs.VERSION, ice.Info.Make.Versions()), model.UID, uid) m.Cmd(s.PrefixPortal(m), Portal{}.CommandUpdate, uid)