Skip to content

Commit

Permalink
fix admin chat error
Browse files Browse the repository at this point in the history
  • Loading branch information
iyear committed Jan 9, 2021
1 parent a82ac72 commit 95eb409
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion control.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ func SignTask() {
UnbindUserStr = UnbindUserStr + ubu + "\n"
}
for _, a := range admin {
chat, _ := bot.ChatByID(strconv.FormatInt(a, 10))
chat, err := bot.ChatByID(strconv.FormatInt(a, 10))
if err != nil {
logger.Println(err)
continue
}
bot.Send(chat, "任务反馈(管理员)\n完成时间: "+time.Now().Format("2006-01-02 15:04:05")+"\n结果: "+strconv.Itoa(signOk)+"/"+strconv.Itoa(num)+"\n错误账户:\n"+ErrUserStr+"\n清退账户:\n"+UnbindUserStr)
}
fmt.Println("----Task End----")
Expand Down

0 comments on commit 95eb409

Please sign in to comment.