update at 2019-11-20 17:04:11 by ehlxr

master v0.0.3
ehlxr 2019-11-20 17:04:11 +08:00
parent 3e22a37dab
commit 07fdff979c
2 changed files with 9 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import (
"net/http"
"os"
"os/signal"
"strings"
log "unknwon.dev/clog/v2"
)
@ -146,7 +147,13 @@ func requestHandle(w http.ResponseWriter, r *http.Request) {
return
}
err = dingTalk.SendTextMessage(content, opts.Robot.AtMobiles, opts.Robot.IsAtAll)
ats := opts.Robot.AtMobiles
at := r.Form.Get("at")
if at != "" {
ats = append(ats, strings.Split(at, ",")...)
}
err = dingTalk.SendTextMessage(content, ats, opts.Robot.IsAtAll)
if err != nil {
log.Error("%+v", err)
_, _ = fmt.Fprintln(w, err)

View File

@ -1 +1 @@
v0.0.2
v0.0.3