master
Evan Chen 2022-01-04 15:32:26 +08:00
parent 748b5c9739
commit 95f9178203
1 changed files with 2 additions and 1 deletions

View File

@ -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)