This commit is contained in:
IT 老营长 @云轩领航-创始人 2025-06-20 08:55:21 +08:00
parent a76be43f0b
commit 8a2f44832a

View File

@ -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)
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 {
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 {
m.ProcessCookie(model.USER_UID, msg.Append(model.UID))
m.ProcessCookie(ice.MSG_USERUID, msg.Append(model.UID))
}
return
}
if m.Cmd(s.user, s.Table.Select, model.UID, m.Option(model.USER_UID)).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)))
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(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 {
m.Cmdy(m.PrefixKey(), s.PlaceList, m.Option(model.USER_UID)).PushAction(s.PlaceRemove).Action(s.PlaceCreate)