remove debug log

This commit is contained in:
Jay 2018-09-27 22:07:55 +08:00
parent c6e0ada3f7
commit e1d09bc77b

View File

@ -14,7 +14,6 @@ import (
) )
func selectAct(cmd, sub, txt string, s *lineobj.SourceObject) (res string) { func selectAct(cmd, sub, txt string, s *lineobj.SourceObject) (res string) {
fmt.Println("Try Run CMD :: ", cmd, sub)
switch cmd { switch cmd {
case "addgroup": case "addgroup":
return addLineGroup(sub, txt, s) return addLineGroup(sub, txt, s)
@ -304,12 +303,10 @@ func addYoutubeChannel(sub, txt string, s *lineobj.SourceObject) (res string) {
} }
func lottery(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 { if len(sub) == 0 {
return "" return ""
} }
data, err := model.GetRandomLotteryByType(sub) data, err := model.GetRandomLotteryByType(sub)
fmt.Println("get data ::: ", data, err)
if err != nil || data == nil { if err != nil || data == nil {
return return
} }
@ -325,6 +322,5 @@ func lottery(sub, txt string, s *lineobj.SourceObject) (res string) {
} }
o := u + oriURL + "/" + data.Message + "?d=" + sub o := u + oriURL + "/" + data.Message + "?d=" + sub
t := u + thumbURL + "/" + 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) return fmt.Sprintf("$image$%s;%s", o, t)
} }