sunty
2019-07-29 f0fb26452f83b35521bfd794ce7e2122053ff57d
update v from int to float64
1个文件已修改
5 ■■■■■ 已修改文件
controllers/esSearch.go 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
controllers/esSearch.go
@@ -56,10 +56,11 @@
        }
    alarmLevelRes := make([]string,len(alarmlevel))
        for i,v := range  alarmlevel  {
            if v.(int) < 0 {
            value := int(v.(float64))
            if value < 0 {
                alarmLevelRes[i] = "撤防"
            }else {
                alarmLevelRes[i] =  alarmLevel[v.(int)]
                alarmLevelRes[i] =  alarmLevel[value]
            }
        }
    return alarmLevelRes