mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
3e92ecd3a8
commit
3ea5de2480
3
misc.go
3
misc.go
@ -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...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user