mirror of
https://shylinux.com/x/icebergs
synced 2025-04-29 02:29:22 +08:00
add some
This commit is contained in:
parent
6ea1bd5a9d
commit
299f3ea184
@ -45,6 +45,10 @@ func init() {
|
|||||||
}, mdb.ImportantHashAction(EMAIL, ADMIN, mdb.SHORT, mdb.UNIQ, mdb.FIELD, "time,hash,status,inviter,email,title,content")), Hand: func(m *ice.Message, arg ...string) {
|
}, mdb.ImportantHashAction(EMAIL, ADMIN, mdb.SHORT, mdb.UNIQ, mdb.FIELD, "time,hash,status,inviter,email,title,content")), Hand: func(m *ice.Message, arg ...string) {
|
||||||
if !m.Warn(len(arg) == 0 && m.Option(ice.MSG_USERROLE) == VOID, ice.ErrNotRight) {
|
if !m.Warn(len(arg) == 0 && m.Option(ice.MSG_USERROLE) == VOID, ice.ErrNotRight) {
|
||||||
kit.If(mdb.HashSelect(m, arg...).FieldsIsDetail(), func() {
|
kit.If(mdb.HashSelect(m, arg...).FieldsIsDetail(), func() {
|
||||||
|
if m.Option(ice.MSG_USERNAME) != "" {
|
||||||
|
m.ProcessLocation(m.MergePod(""))
|
||||||
|
return
|
||||||
|
}
|
||||||
m.Option(ice.MSG_USERHOST, strings.Split(m.Option(ice.MSG_USERHOST), "://")[1])
|
m.Option(ice.MSG_USERHOST, strings.Split(m.Option(ice.MSG_USERHOST), "://")[1])
|
||||||
m.SetAppend().EchoInfoButton(ice.Info.Template(m, SUBJECT_HTML), ACCEPT)
|
m.SetAppend().EchoInfoButton(ice.Info.Template(m, SUBJECT_HTML), ACCEPT)
|
||||||
})
|
})
|
||||||
|
@ -38,15 +38,13 @@ func init() {
|
|||||||
OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
OPEN: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), S(m.Option(mdb.NAME)), arg...)
|
ProcessIframe(m, m.Option(mdb.NAME), S(m.Option(mdb.NAME)), arg...)
|
||||||
}},
|
}},
|
||||||
PORTAL: {Hand: func(m *ice.Message, arg ...string) {
|
PORTAL: {Role: aaa.VOID, Hand: func(m *ice.Message, arg ...string) {
|
||||||
ProcessIframe(m, m.Option(mdb.NAME), m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(PORTAL), arg...)
|
ProcessIframe(m, m.Option(mdb.NAME), m.Option(ORIGIN)+S(m.Option(mdb.NAME))+C(PORTAL), arg...)
|
||||||
}},
|
}},
|
||||||
}, ctx.ConfAction(ctx.TOOLS, DREAM)), Hand: func(m *ice.Message, arg ...string) {
|
}, ctx.ConfAction(ctx.TOOLS, DREAM)), Hand: func(m *ice.Message, arg ...string) {
|
||||||
if len(arg) == 0 {
|
if len(arg) == 0 {
|
||||||
m.Cmd(SPIDE, arg, kit.Dict(ice.MSG_FIELDS, "time,client.type,client.name,client.origin")).Table(func(value ice.Maps) {
|
m.Cmd(SPIDE, arg, kit.Dict(ice.MSG_FIELDS, "time,client.type,client.name,client.origin")).Table(func(value ice.Maps) {
|
||||||
if value[CLIENT_TYPE] == nfs.REPOS {
|
kit.If(value[CLIENT_TYPE] == nfs.REPOS, func() { m.Push(mdb.NAME, value[CLIENT_NAME]) })
|
||||||
m.Push(mdb.NAME, value[CLIENT_NAME])
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
if ctx.Toolkit(m.Display("")); ice.Info.NodeType == WORKER {
|
if ctx.Toolkit(m.Display("")); ice.Info.NodeType == WORKER {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user