diff --git a/base/aaa/role.go b/base/aaa/role.go index 6e9cca30..36fda11e 100644 --- a/base/aaa/role.go +++ b/base/aaa/role.go @@ -78,6 +78,12 @@ func init() { RIGHT: {Hand: func(m *ice.Message, arg ...string) { kit.If(_role_right(m, arg[0], kit.Split(_role_keys(arg[1:]...), ice.PT)...), func() { m.Echo(ice.OK) }) }}, + "whiteblack": {Hand: func(m *ice.Message, arg ...string) { + kit.For(arg, func(cmd string) { + m.Cmd(ROLE, WHITE, VOID, cmd) + m.Cmd(ROLE, BLACK, VOID, cmd, ice.ACTION) + }) + }}, }, mdb.HashAction(mdb.SHORT, mdb.NAME)), Hand: func(m *ice.Message, arg ...string) { _role_list(m, kit.Select("", arg, 0)).PushAction(mdb.DELETE) }}, diff --git a/base/web/space.go b/base/web/space.go index e0aae392..98659d9c 100644 --- a/base/web/space.go +++ b/base/web/space.go @@ -150,7 +150,7 @@ func _space_send(m *ice.Message, name string, arg ...string) (h string) { }) { wait() } else { - m.Warn(kit.IndexOf([]string{ice.OPS, ice.DEV}, target[0]) == -1, ice.ErrNotFound, name) + m.Warn(kit.IndexOf([]string{ice.OPS, ice.DEV}, target[0]) == -1, ice.ErrNotFound, SPACE, name) } return } diff --git a/core/code/webpack.go b/core/code/webpack.go index 309be709..6359c6d0 100644 --- a/core/code/webpack.go +++ b/core/code/webpack.go @@ -68,7 +68,9 @@ func _webpack_cache(m *ice.Message, dir string, write bool) { }) } for _, k := range []string{ice.FRAME_JS} { - _webpack_js(m, js, _volcanos(m, k)) + m.Option(nfs.DIR_ROOT, _volcanos(m)) + _webpack_js(m, js, k) + m.Option(nfs.DIR_ROOT, "") } _webpack_css(m, css, js, "src/template/web.chat.header/dark.css") _webpack_css(m, css, js, "src/template/web.chat.header/light.css")