From 95f9178203bb52a6de594ce41b8ea2ca4d808ebe Mon Sep 17 00:00:00 2001 From: Evan Chen Date: Tue, 4 Jan 2022 15:32:26 +0800 Subject: [PATCH] update --- api_line.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)