1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
shylinux 2021-08-17 22:06:49 +08:00
parent 155763119a
commit 3a70827cc2
2 changed files with 4 additions and 2 deletions

View File

@ -192,8 +192,7 @@ func _serve_login(msg *ice.Message, cmds []string, w http.ResponseWriter, r *htt
return cmds, false // 黑名单
} else if msg.Conf(SERVE, kit.Keym(aaa.WHITE, ls[1])) == ice.TRUE {
if msg.Option(ice.MSG_USERNAME) == "" && msg.Option(SHARE) != "" {
share := msg.Cmd(SHARE, msg.Option(SHARE))
switch share.Append(kit.MDB_TYPE) {
switch share := msg.Cmd(SHARE, msg.Option(SHARE)); share.Append(kit.MDB_TYPE) {
case LOGIN:
// Render(msg, aaa.SessCreate(msg, share.Append(aaa.USERNAME)))
case FIELD:

View File

@ -135,6 +135,9 @@ func init() {
m.ProcessInner()
}},
}, mdb.HashAction()), Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
if m.PodCmd(SHARE, arg) {
return
}
m.Fields(len(arg), m.Conf(SHARE, kit.META_FIELD))
if m.Cmdy(mdb.SELECT, m.PrefixKey(), "", mdb.HASH, kit.MDB_HASH, arg); len(arg) > 0 {
link := _share_link(m, "/share/"+arg[0])