mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
opt some
This commit is contained in:
parent
e2e04b2b3f
commit
c676c9d024
@ -23,6 +23,9 @@ func Upload(m *ice.Message) []string { // hash name size
|
|||||||
return up
|
return up
|
||||||
}
|
}
|
||||||
func PushNotice(m *ice.Message, arg ...ice.Any) {
|
func PushNotice(m *ice.Message, arg ...ice.Any) {
|
||||||
|
if m.Option(ice.MSG_DAEMON) == "" {
|
||||||
|
return
|
||||||
|
}
|
||||||
m.Optionv(ice.MSG_OPTS, m.Optionv(ice.MSG_OPTION))
|
m.Optionv(ice.MSG_OPTS, m.Optionv(ice.MSG_OPTION))
|
||||||
if m.Option(ice.MSG_USERPOD) == "" {
|
if m.Option(ice.MSG_USERPOD) == "" {
|
||||||
m.Cmd(SPACE, m.Option(ice.MSG_DAEMON), arg)
|
m.Cmd(SPACE, m.Option(ice.MSG_DAEMON), arg)
|
||||||
|
2
meta.go
2
meta.go
@ -500,7 +500,7 @@ func (m *Message) Appendv(key string, arg ...Any) []string {
|
|||||||
|
|
||||||
if m.FieldsIsDetail() && key != KEY {
|
if m.FieldsIsDetail() && key != KEY {
|
||||||
for i, k := range m.meta[KEY] {
|
for i, k := range m.meta[KEY] {
|
||||||
if k == key {
|
if k == key || k == kit.Keys(EXTRA, key) {
|
||||||
if len(arg) > 0 {
|
if len(arg) > 0 {
|
||||||
m.meta[VALUE][i] = kit.Format(arg[0])
|
m.meta[VALUE][i] = kit.Format(arg[0])
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user