This commit is contained in:
Jay 2018-10-01 22:50:27 +08:00
parent 939c08fe04
commit 6d7c9e92d6

View File

@ -5,6 +5,7 @@ import (
"crypto/sha256" "crypto/sha256"
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt"
"io/ioutil" "io/ioutil"
"git.trj.tw/golang/mtfosbot/module/config" "git.trj.tw/golang/mtfosbot/module/config"
@ -71,6 +72,8 @@ func GetLineMessage(c *context.Context) {
c.DataFormat("body type error") c.DataFormat("body type error")
} }
fmt.Println("Line Hook ::: ", string(raw))
events := struct { events := struct {
Events []*lineobj.EventObject `json:"events"` Events []*lineobj.EventObject `json:"events"`
}{} }{}