mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
add some
This commit is contained in:
parent
e821a8a104
commit
b420249a1e
@ -3,7 +3,6 @@ package web
|
|||||||
import (
|
import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net"
|
"net"
|
||||||
"net/http"
|
|
||||||
"path"
|
"path"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
@ -376,9 +375,9 @@ func init() {
|
|||||||
ice.Info.Inputs = append(ice.Info.Inputs, func(m *ice.Message, arg ...string) {
|
ice.Info.Inputs = append(ice.Info.Inputs, func(m *ice.Message, arg ...string) {
|
||||||
switch kit.TrimPrefix(arg[0], "extra.") {
|
switch kit.TrimPrefix(arg[0], "extra.") {
|
||||||
case DREAM:
|
case DREAM:
|
||||||
m.SplitIndex(m.Cmdx(SPIDE, ice.OPS, SPIDE_RAW, http.MethodGet, C(DREAM))).CutTo(mdb.NAME, DREAM)
|
m.Copy(AdminCmd(m, DREAM).CutTo(mdb.NAME, DREAM))
|
||||||
case SPACE:
|
case SPACE:
|
||||||
m.Cmd(SPACE, func(value ice.Maps) {
|
AdminCmd(m, SPACE).Table(func(value ice.Maps) {
|
||||||
kit.If(kit.IsIn(value[mdb.TYPE], WORKER, SERVER), func() { m.Push(arg[0], value[mdb.NAME]) })
|
kit.If(kit.IsIn(value[mdb.TYPE], WORKER, SERVER), func() { m.Push(arg[0], value[mdb.NAME]) })
|
||||||
})
|
})
|
||||||
case ORIGIN:
|
case ORIGIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user