update
parent
748b5c9739
commit
95f9178203
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue