diff --git a/api_line.go b/api_line.go index befa77a..bbe5ff1 100644 --- a/api_line.go +++ b/api_line.go @@ -22,7 +22,7 @@ func webhook(c *gin.Context) { if flagDev { data, _ := json.MarshalIndent(events, "", " ") - fmt.Println(string(data)) + go fmt.Println(string(data)) } for _, event := range events { @@ -42,6 +42,7 @@ func webhook(c *gin.Context) { func postback(event *linebot.Event) { data := event.Postback.Data + Hit(data, event.Source.UserID) switch { case strings.HasPrefix(data, "select="): ApiSelectProfile(event)