liuxiaolong
2020-10-26 28b0a489c64cbca8d27fcff5488edb442f81ed1d
fix tmpTime parseInLocation
1个文件已修改
6 ■■■■■ 已修改文件
EsClient.go 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
EsClient.go
@@ -695,6 +695,9 @@
            baseInfo := source["baseInfo"].([]interface{})[0].(map[string]interface{})
            targetInfo := source["targetInfo"].([]interface{})[0].(map[string]interface{})
            tmpTime := source["picDate"].(string)
            if len(tmpTime) > 19 {
                tmpTime = tmpTime[:19]
            }
            mTime, err := time.ParseInLocation("2006-01-02 15:04:05", tmpTime, loc)
            if err != nil {
                return nil, errors.New("时间解析错误")
@@ -825,6 +828,9 @@
            baseInfo := source["baseInfo"].([]interface{})[0].(map[string]interface{})
            targetInfo := source["targetInfo"].([]interface{})[0].(map[string]interface{})
            tmpTime := source["picDate"].(string)
            if len(tmpTime) > 19 {
                tmpTime = tmpTime[:19]
            }
            mTime, err := time.ParseInLocation("2006-01-02 15:04:05", tmpTime, loc)
            if err != nil {
                return nil, errors.New("时间解析错误")