mirror of
https://shylinux.com/x/community
synced 2025-07-01 21:21:19 +08:00
opt some
This commit is contained in:
parent
a76be43f0b
commit
8a2f44832a
@ -149,17 +149,17 @@ func (s Portal) List(m *ice.Message, arg ...string) {
|
|||||||
s.Hash.List(m, kit.Slice(arg, 1)...).PushAction(mdb.DETAIL, s.Hash.Remove).Action().SortInt(mdb.ORDER)
|
s.Hash.List(m, kit.Slice(arg, 1)...).PushAction(mdb.DETAIL, s.Hash.Remove).Action().SortInt(mdb.ORDER)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if m.Option(model.USER_UID) == "" {
|
if m.Option(ice.MSG_USERUID) == "" {
|
||||||
if msg := m.Cmd(s.user, s.Table.Select, model.OPEN_ID, m.Option(ice.MSG_USERNAME)); msg.Length() == 0 {
|
if msg := m.Cmd(s.user, s.Table.Select, model.OPEN_ID, m.Option(ice.MSG_USERNAME)); msg.Length() == 0 {
|
||||||
msg := m.Cmd(s.user, s.Table.Create, m.Option(ice.MSG_USERNAME), "", m.OptionDefault(ice.MSG_USERNICK, m.Option(ice.MSG_USERNAME)))
|
msg := m.Cmd(s.user, s.Table.Create, m.Option(ice.MSG_USERNAME), "", m.OptionDefault(ice.MSG_USERNICK, m.Option(ice.MSG_USERNAME)))
|
||||||
m.ProcessCookie(model.USER_UID, msg.Result())
|
m.ProcessCookie(ice.MSG_USERUID, msg.Result())
|
||||||
} else {
|
} else {
|
||||||
m.ProcessCookie(model.USER_UID, msg.Append(model.UID))
|
m.ProcessCookie(ice.MSG_USERUID, msg.Append(model.UID))
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if m.Cmd(s.user, s.Table.Select, model.UID, m.Option(model.USER_UID)).Length() == 0 {
|
if m.Cmd(s.user, s.Table.Select, model.UID, m.Option(ice.MSG_USERUID)).Length() == 0 {
|
||||||
m.Cmd(s.user, s.Table.Insert, model.UID, m.Option(model.USER_UID), model.OPEN_ID, m.Option(ice.MSG_USERNAME), model.NAME, m.OptionDefault(ice.MSG_USERNICK, m.Option(ice.MSG_USERNAME)))
|
m.Cmd(s.user, s.Table.Insert, model.UID, m.Option(ice.MSG_USERUID), model.OPEN_ID, m.Option(ice.MSG_USERNAME), model.NAME, m.OptionDefault(ice.MSG_USERNICK, m.Option(ice.MSG_USERNAME)))
|
||||||
}
|
}
|
||||||
if m.Option(model.SERVICE_UID, ServiceUID(m)); len(arg) == 0 {
|
if m.Option(model.SERVICE_UID, ServiceUID(m)); len(arg) == 0 {
|
||||||
m.Cmdy(m.PrefixKey(), s.PlaceList, m.Option(model.USER_UID)).PushAction(s.PlaceRemove).Action(s.PlaceCreate)
|
m.Cmdy(m.PrefixKey(), s.PlaceList, m.Option(model.USER_UID)).PushAction(s.PlaceRemove).Action(s.PlaceCreate)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user