1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-25 17:18:05 +08:00
This commit is contained in:
harveyshao 2021-11-30 20:16:48 +08:00
parent 3e92ecd3a8
commit 3ea5de2480

View File

@ -135,12 +135,13 @@ func (m *Message) AppendSimple(key ...string) (res []string) {
}
return
}
func (m *Message) AppendTrans(cb func(value string, key string, index int) string) {
func (m *Message) AppendTrans(cb func(value string, key string, index int) string) *Message {
for _, k := range m.meta[MSG_APPEND] {
for i, v := range m.meta[k] {
m.meta[k][i] = cb(v, k, i)
}
}
return m
}
func (m *Message) MergeURL2(url string, arg ...interface{}) string {
return kit.MergeURL2(m.Option(MSG_USERWEB), url, arg...)