diff --git a/router/line/line.go b/router/line/line.go index 085e948..463ec57 100644 --- a/router/line/line.go +++ b/router/line/line.go @@ -7,8 +7,6 @@ import ( "encoding/json" "io/ioutil" - "git.trj.tw/golang/mtfosbot/module/es" - "git.trj.tw/golang/mtfosbot/module/config" "git.trj.tw/golang/mtfosbot/module/context" "git.trj.tw/golang/mtfosbot/module/line-message" @@ -73,14 +71,6 @@ func GetLineMessage(c *context.Context) { c.DataFormat("body type error") } - jsonMap := make(map[string]interface{}) - if err := json.Unmarshal(raw, &jsonMap); err == nil { - es.PutLog("line", jsonMap) - } - defer func() { - jsonMap = nil - }() - events := struct { Events []*lineobj.EventObject `json:"events"` }{}