mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
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++ {
|
||||
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) {
|
||||
case float64:
|
||||
m.Meta[m.Option("extra_field")][i] = fmt.Sprintf(format, int(v))
|
||||
default:
|
||||
m.Meta[m.Option("extra_field")][i] = fmt.Sprintf(format, v)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user