forked from x/ContextOS
mac
This commit is contained in:
parent
10755ac5e2
commit
796ea3dd1c
@ -238,6 +238,8 @@ var Index = &ctx.Context{Name: "mdb", Help: "数据中心",
|
|||||||
for i := 0; i < len(m.Meta[m.Option("extra_field")]); i++ {
|
for i := 0; i < len(m.Meta[m.Option("extra_field")]); i++ {
|
||||||
json.Unmarshal([]byte(m.Meta[m.Option("extra_field")][i]), &m.Target().Configs["template_value"].Value)
|
json.Unmarshal([]byte(m.Meta[m.Option("extra_field")][i]), &m.Target().Configs["template_value"].Value)
|
||||||
switch v := m.Confv("template_value", m.Option("extra_chains")).(type) {
|
switch v := m.Confv("template_value", m.Option("extra_chains")).(type) {
|
||||||
|
case float64:
|
||||||
|
m.Meta[m.Option("extra_field")][i] = fmt.Sprintf(format, int(v))
|
||||||
default:
|
default:
|
||||||
m.Meta[m.Option("extra_field")][i] = fmt.Sprintf(format, v)
|
m.Meta[m.Option("extra_field")][i] = fmt.Sprintf(format, v)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user