update
parent
748b5c9739
commit
95f9178203
|
@ -22,7 +22,7 @@ func webhook(c *gin.Context) {
|
||||||
|
|
||||||
if flagDev {
|
if flagDev {
|
||||||
data, _ := json.MarshalIndent(events, "", " ")
|
data, _ := json.MarshalIndent(events, "", " ")
|
||||||
fmt.Println(string(data))
|
go fmt.Println(string(data))
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, event := range events {
|
for _, event := range events {
|
||||||
|
@ -42,6 +42,7 @@ func webhook(c *gin.Context) {
|
||||||
|
|
||||||
func postback(event *linebot.Event) {
|
func postback(event *linebot.Event) {
|
||||||
data := event.Postback.Data
|
data := event.Postback.Data
|
||||||
|
Hit(data, event.Source.UserID)
|
||||||
switch {
|
switch {
|
||||||
case strings.HasPrefix(data, "select="):
|
case strings.HasPrefix(data, "select="):
|
||||||
ApiSelectProfile(event)
|
ApiSelectProfile(event)
|
||||||
|
|
Loading…
Reference in New Issue