From c233fa0cfbaa8cc92c6143cf405c635f16fe2e2a Mon Sep 17 00:00:00 2001 From: jay Date: Thu, 27 Sep 2018 21:56:32 +0800 Subject: [PATCH] add more log --- module/message-command/line-group.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/message-command/line-group.go b/module/message-command/line-group.go index 6096ef0..76af684 100644 --- a/module/message-command/line-group.go +++ b/module/message-command/line-group.go @@ -304,10 +304,12 @@ func addYoutubeChannel(sub, txt string, s *lineobj.SourceObject) (res string) { } func lottery(sub, txt string, s *lineobj.SourceObject) (res string) { + fmt.Println("lottery input ", sub, txt) if len(sub) == 0 { return "" } data, err := model.GetRandomLotteryByType(sub) + fmt.Println("get data ::: ", data, err) if err != nil || data == nil { return } @@ -323,5 +325,6 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) { } o := u + oriURL + "/" + data.Message + "?d=" + sub t := u + thumbURL + "/" + data.Message + "?d=" + sub + fmt.Printf("$image$%s;%s\n", o, t) return fmt.Sprintf("$image$%s;%s", o, t) }