1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2022-08-09 14:34:32 +08:00
parent e2e04b2b3f
commit c676c9d024
2 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,9 @@ func Upload(m *ice.Message) []string { // hash name size
return up
}
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))
if m.Option(ice.MSG_USERPOD) == "" {
m.Cmd(SPACE, m.Option(ice.MSG_DAEMON), arg)

View File

@ -500,7 +500,7 @@ func (m *Message) Appendv(key string, arg ...Any) []string {
if m.FieldsIsDetail() && key != KEY {
for i, k := range m.meta[KEY] {
if k == key {
if k == key || k == kit.Keys(EXTRA, key) {
if len(arg) > 0 {
m.meta[VALUE][i] = kit.Format(arg[0])
}