Skip to content

Commit

Permalink
fix(set): message optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Jun 19, 2019
1 parent 6f22a5b commit fdcd743
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bot/bot.go
Expand Up @@ -318,6 +318,10 @@ func makeHandle() {
//}
sources, _ := model.GetSourcesByUserID(m.Chat.ID)

if len(sources) <= 0 {
_, _ = B.Send(m.Chat, "当前没有订阅源")
return
}
var replyButton []tb.ReplyButton
replyKeys := [][]tb.ReplyButton{}
for _, source := range sources {
Expand Down Expand Up @@ -389,7 +393,7 @@ func makeHandle() {
UserState[m.Chat.ID] = fsm.UnSub
}
} else {
_, _ = B.Send(m.Chat, "您当前没有订阅源。")
_, _ = B.Send(m.Chat, "当前没有订阅源")
}

}
Expand Down

0 comments on commit fdcd743

Please sign in to comment.