add log print

This commit is contained in:
Jay 2018-10-09 23:53:46 +08:00
parent d633b66720
commit 101024599c
1 changed files with 2 additions and 0 deletions

View File

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