|
@@ -376,12 +376,21 @@ func setPaceMap(info map[string]interface{}, confpack []map[string]interface{},
|
|
for _, v := range plist {
|
|
for _, v := range plist {
|
|
var inputs []interface{}
|
|
var inputs []interface{}
|
|
v1 := v.(map[string]interface{})
|
|
v1 := v.(map[string]interface{})
|
|
- for key, value := range v1 {
|
|
|
|
|
|
+ //for key, value := range v1 {
|
|
|
|
+ // tp := map[string]interface{}{
|
|
|
|
+ // "key": key,
|
|
|
|
+ // "descript": mm[key],
|
|
|
|
+ // }
|
|
|
|
+ // tp["value"] = value
|
|
|
|
+ // tp["status"] = status
|
|
|
|
+ // inputs = append(inputs, tp)
|
|
|
|
+ //}
|
|
|
|
+ for k1, d1 := range mm {
|
|
tp := map[string]interface{}{
|
|
tp := map[string]interface{}{
|
|
- "key": key,
|
|
|
|
- "descript": mm[key],
|
|
|
|
|
|
+ "key": k1,
|
|
|
|
+ "descript": d1,
|
|
}
|
|
}
|
|
- tp["value"] = value
|
|
|
|
|
|
+ tp["value"] = v1[k1]
|
|
tp["status"] = status
|
|
tp["status"] = status
|
|
inputs = append(inputs, tp)
|
|
inputs = append(inputs, tp)
|
|
}
|
|
}
|