Skip to content

Commit

Permalink
Merge pull request #450 from Leif160519/dev
Browse files Browse the repository at this point in the history
[fix:#443]:企业微信应用的默认模板缺少{{字符导致变量generatorURL无法获取到值
  • Loading branch information
feiyu563 authored Nov 12, 2024
2 parents 810d3ee + 1225107 commit 120f0f3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/prometheusalert.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (c *PrometheusAlertController) PrometheusAlert() {
pMsg.Ddurl = checkURL(agMap["ddurl"], c.Input().Get("ddurl"), beego.AppConfig.String("ddurl"))
pMsg.Wxurl = checkURL(agMap["wxurl"], c.Input().Get("wxurl"), beego.AppConfig.String("wxurl"))
pMsg.Fsurl = checkURL(agMap["fsurl"], c.Input().Get("fsurl"), beego.AppConfig.String("fsurl"))
pMsg.Email = checkURL(agMap["email"], c.Input().Get("email"), beego.AppConfig.String("fsurl"))
pMsg.Email = checkURL(agMap["email"], c.Input().Get("email"), beego.AppConfig.String("email"))
pMsg.GroupId = checkURL(agMap["groupid"], c.Input().Get("groupid"), beego.AppConfig.String("BDRL_ID"))

pMsg.Phone = checkURL(agMap["phone"], c.Input().Get("phone"))
Expand Down
Binary file modified db/PrometheusAlertDB.db
Binary file not shown.
Loading

0 comments on commit 120f0f3

Please sign in to comment.