1
0
mirror of https://shylinux.com/x/icebergs synced 2025-06-26 18:37:29 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-04-12 11:51:05 +08:00
parent 40d48142b6
commit c33ddf4795
2 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
)
func _role_keys(key ...string) string {
if _key := kit.Slice(strings.Split(key[0], ice.PT), -1)[0]; _key != "" {
if _key := kit.Select("", strings.Split(key[0], ice.PT), -1); _key != "" {
if c, ok := ice.Info.Index[_key].(*ice.Context); ok && kit.Keys(c.Prefix(), _key) == key[0] {
key[0] = _key
}

View File

@ -115,6 +115,9 @@ func _serve_auth(m *ice.Message, key string, cmds []string, w http.ResponseWrite
if r.URL.Path == PP(SPACE) {
return cmds, true
}
kit.For(r.Header, func(k string, v []string) {
m.Debug("what %v: %v", k, v)
})
defer func() { m.Options(ice.MSG_CMDS, "", ice.MSG_SESSID, "") }()
if aaa.SessCheck(m, m.Option(ice.MSG_SESSID)); m.Option(SHARE) != "" {
switch msg := m.Cmd(SHARE, m.Option(SHARE)); msg.Append(mdb.TYPE) {