mirror of
https://shylinux.com/x/community
synced 2025-07-03 05:51:20 +08:00
add some
This commit is contained in:
parent
1b7da06a28
commit
555b0c66ef
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user