From 101024599c168fabbce07b87b2687b8540b07844 Mon Sep 17 00:00:00 2001 From: Jay Date: Tue, 9 Oct 2018 23:53:46 +0800 Subject: [PATCH] add log print --- module/message-command/line-group.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/message-command/line-group.go b/module/message-command/line-group.go index 7b723bb..0f8371d 100644 --- a/module/message-command/line-group.go +++ b/module/message-command/line-group.go @@ -343,6 +343,7 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) { if err != nil || arr == nil { return "" } + fmt.Println("get number lottery ::::: ", len(arr)) // shuffle array dest := make([]*model.Lottery, len(arr)) @@ -352,6 +353,7 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) { } data := dest[0] + fmt.Println("Get Data :::: ", data) conf := config.GetConf() u := conf.URL